Commands for installing GnuWin32: GetText 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.GetText -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GnuWin32.GetText -e --silentwinget uninstall --id GnuWin32.GetText -e --silentBy installer
32-bit · EXE (Inno Setup) · All users
Silent install
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-gettext"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-gnuwin32-gettext.ps1
$url = 'https://sourceforge.net/projects/gnuwin32/files/gettext/0.14.4/gettext-0.14.4.exe/download'
$sha256 = 'F123930B8407FDCF1407ED3E9FF95CC3DC89B1D45418D5F0A2A5FB053D28449C'
$file = Join-Path $env:TEMP 'download'
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