Commands for installing 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 ahkohd.switch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ahkohd.switch -e --silentwinget uninstall --id ahkohd.switch -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Switch-Setup-1.0.23.exe /SCustom folder
Switch-Setup-1.0.23.exe /S /D=C:\Apps\switchPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-switch.ps1
$url = 'https://github.com/ahkohd/switch-desktop/releases/download/v1.0.23/Switch-Setup-1.0.23.exe'
$sha256 = '33B735674993F6447B0C0783C7A7BF9EFAEC8455E3C71974B464CC48775EEF66'
$file = Join-Path $env:TEMP 'Switch-Setup-1.0.23.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