Commands for installing cc-switch-remote 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 zz920.cc-switch-remote -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id zz920.cc-switch-remote -e --silentwinget uninstall --id zz920.cc-switch-remote -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
cc-switch-remote_3.20.2_x64-setup.exe /SCustom folder
cc-switch-remote_3.20.2_x64-setup.exe /S /D=C:\Apps\cc-switch-remote- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cc-switch-remote
- Install folder
- %LocalAppData%\cc-switch-remote
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cc-switch-remote.ps1
$url = 'https://github.com/zz920/cc-switch-remote/releases/download/v3.20.2-r1/cc-switch-remote_3.20.2_x64-setup.exe'
$sha256 = 'E142A66645804B159E10321D88F5E3A8E290730BDAEB7CAB552BB82732D1EBBF'
$file = Join-Path $env:TEMP 'cc-switch-remote_3.20.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