Kommandon för att installera zcode-switch 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 pjpv.zcode-switch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pjpv.zcode-switch -e --silentwinget uninstall --id pjpv.zcode-switch -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
zcode-switch_1.6.0_x64-setup.exe /SEgen mapp
zcode-switch_1.6.0_x64-setup.exe /S /D=C:\Apps\zcode-switch- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\zcode-switch
- Installationsmapp
- %LocalAppData%\zcode-switch
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-zcode-switch.ps1
$url = 'https://github.com/pjpv/zcode-switch/releases/download/v1.6.0/zcode-switch_1.6.0_x64-setup.exe'
$sha256 = '6411BB9BDE0C1A1E4CB8A60374A98B1FD2A232745684E6B3013E6D1F84ECB7B1'
$file = Join-Path $env:TEMP 'zcode-switch_1.6.0_x64-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 '/S' -Wait