Popular: Data updated November 24, 2026

Categories

Internet1,425
Communication330
Audio & video940
Graphics & design567
Office & productivity1,189
Developer tools3,297
AI tools611
Security & privacy409
System tools3,206
Games545
Education & science242
Network & IT295

GnuWin32: M4 silent install & uninstall

M4: macro processor

Commands for installing GnuWin32: M4 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.M4 -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id GnuWin32.M4 -e --silent
winget uninstall --id GnuWin32.M4 -e --silent

By installer

32-bit · EXE (Inno Setup)

Silent installm4-1.4.13-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
Custom folderm4-1.4.13-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-m4"

PowerShell: download, verify, install

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

install-gnuwin32-m4.ps1
$url = 'http://downloads.sourceforge.net/gnuwin32/m4-1.4.13-setup.exe'
$sha256 = 'B28A2EB300AB56E7F1A028F644CD189BF13E99D90466D4D51DE796F8A50C99B0'
$file = Join-Path $env:TEMP 'm4-1.4.13-setup.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: 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.
  • GnuWin32: Flexfast lexical analyzer generator

Tags

Share