Popular: Data updated October 27, 2026

Categories

Internet1,356
Communication321
Audio & video898
Graphics & design539
Office & productivity1,124
Developer tools3,134
AI tools529
Security & privacy385
System tools3,114
Games523
Education & science239
Network & IT284

GnuWin32: Flex silent install & uninstall

fast lexical analyzer generator

Commands for installing GnuWin32: Flex without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.

Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell

With winget

PowerShell
winget install --id GnuWin32.Flex -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id GnuWin32.Flex -e --silent
winget uninstall --id GnuWin32.Flex -e --silent

By installer

32-bit · EXE (Inno Setup)

Silent installflex-2.5.4a-1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
Custom folderflex-2.5.4a-1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-flex"

PowerShell: download, verify, install

Downloads the official file, checks its SHA256 and installs it silently.

install-gnuwin32-flex.ps1
$url = 'https://downloads.sourceforge.net/project/gnuwin32/flex/2.5.4a-1/flex-2.5.4a-1.exe'
$sha256 = 'E8DD37C5E132B52248B58DA14F7608C45D1DD239B020EFA80B03788501D633E5'
$file = Join-Path $env:TEMP 'flex-2.5.4a-1.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait

More from GnuWin32

See all
  • FileFile: determine file type; Complete package, except sources
  • GnuWin32: M4M4: macro processor
  • GnuWin32: BisonYacc-compatible parser generator
  • GnuWin32: CpioGNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe.
  • GnuWin32: DiffUtilsGNU Diffutils is a package of several programs related to finding differences between files.
  • GnuWin32: FindUtils`find' is a program which searches a directory tree to find a file or group of files.

Tags

Share