Kommandon för att installera pyzo 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 ThePyzoteam.pyzo -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ThePyzoteam.pyzo -e --silentwinget uninstall --id ThePyzoteam.pyzo -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
pyzo-4.22.0-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
pyzo-4.22.0-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pyzo"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\pyzo_is1
- Installationsmapp
- %ProgramFiles%\pyzo
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-pyzo.ps1
$url = 'https://github.com/pyzo/pyzo/releases/download/v4.22.0/pyzo-4.22.0-win64.exe'
$sha256 = 'EC0F70CD2F1AA1DEC948C3241EEBF7CF3C1109264B66A5200232E80BD8FF1CF6'
$file = Join-Path $env:TEMP 'pyzo-4.22.0-win64.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