Kommandon för att installera Perch 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 EagleSpirit.Perch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EagleSpirit.Perch -e --silentwinget uninstall --id EagleSpirit.Perch -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare · en-US
Tyst installation
Perch-0.5.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Perch-0.5.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\perch"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E4B1C22-7F3A-4B6E-9C1D-2A5F0E7D3B91}_is1
- Installationsmapp
- %LocalAppData%\Programs\Perch
- DisplayVersion
- 0.5.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-perch.ps1
$url = 'https://github.com/eaglespirittech/perch/releases/download/v0.5.0/Perch-0.5.0-setup.exe'
$sha256 = '0FD960D75531562963D9EF82763F33E9BB0E1707C7D45F2B33C736A0DE8D2345'
$file = Join-Path $env:TEMP 'Perch-0.5.0-setup.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