Kommandoer for å installere zcode-switch uten spørsmål, fjerne programmet igjen og gjenkjenne det i distribusjonsverktøy. En kommando vises bare når den er sikker: fra manifestet eller som dokumentert standard for installasjonsteknologien.
Relatert veiledning: Parametre for stille installasjon: MSI, NSIS, Inno · Avinstaller et program via registeret 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 installasjonsfil
64-bit · EXE (NSIS) · Gjeldende bruker
Stille installasjon
zcode-switch_1.6.0_x64-setup.exe /SEgen mappe
zcode-switch_1.6.0_x64-setup.exe /S /D=C:\Apps\zcode-switch- Registernøkkel for avinstallering
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\zcode-switch
- Installasjonsmappe
- %LocalAppData%\zcode-switch
PowerShell: last ned, kontroller, installer
Laster ned den offisielle filen, kontrollerer SHA256-summen og installerer i stillhet.
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