Příkazy pro instalaci programu GnuWin32: FindUtils bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes 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 --silentPodle instalátoru
32bit · EXE (Inno Setup) · en-US
Tichá instalace
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-findutils"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
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