Polecenia do instalacji programu Gforth bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id GNU.Gforth -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GNU.Gforth -e --silentwinget uninstall --id GNU.Gforth -e --silentWedług instalatora
32-bit · EXE (Inno Setup) · en-US
Cicha instalacja
gforth-0.7.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Własny folder
gforth-0.7.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gforth"- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Gforth_is1
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-gforth.ps1
$url = 'https://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.0.exe'
$sha256 = 'C941C8ACCB0EADFA3EE9E4B60DC39DD390684F71EC4AAFDD7993552F8F545026'
$file = Join-Path $env:TEMP 'gforth-0.7.0.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