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