Commands for installing zcode-switch without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
zcode-switch_1.6.0_x64-setup.exe /SCustom folder
zcode-switch_1.6.0_x64-setup.exe /S /D=C:\Apps\zcode-switch- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\zcode-switch
- Install folder
- %LocalAppData%\zcode-switch
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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