Kommandon för att installera OpenRocket utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id OpenRocket.OpenRocket -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenRocket.OpenRocket -e --silentwinget uninstall --id OpenRocket.OpenRocket -e --silentPer installationsfil
64-bitars · EXE · Alla användare
Tyst installation
OpenRocket-23.09-Windows.exe -qPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-openrocket.ps1
$url = 'https://github.com/openrocket/openrocket/releases/download/release-23.09/OpenRocket-23.09-Windows.exe'
$sha256 = '7C9E65111A73EF87AA81CA2147800BD40A470F3D7EF3DC31B9A0342FFAE05B2B'
$file = Join-Path $env:TEMP 'OpenRocket-23.09-Windows.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 '-q' -Wait