Opdragte om zcode-switch sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met 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 --silentVolgens installeerder
64-bis · EXE (NSIS) · Huidige gebruiker
Stil installasie
zcode-switch_1.7.2_x64-setup.exe /SEie lêergids
zcode-switch_1.7.2_x64-setup.exe /S /D=C:\Apps\zcode-switch- Deïnstalleer-registersleutel
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\zcode-switch
- Installeerlêergids
- %LocalAppData%\zcode-switch
PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
install-zcode-switch.ps1
$url = 'https://github.com/pjpv/zcode-switch/releases/download/v1.7.2/zcode-switch_1.7.2_x64-setup.exe'
$sha256 = '890DC67BC8E2C3895E5ACF9656A4B73F98D46B604FBFC16F557DEF72E5C0F7ED'
$file = Join-Path $env:TEMP 'zcode-switch_1.7.2_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