Commands for installing ToDesktop 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 ToDesktop.ToDesktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ToDesktop.ToDesktop -e --silentwinget uninstall --id ToDesktop.ToDesktop -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
"ToDesktop Builder Setup 0.38.3 - Build 261004ea81cac27-x64.exe" /SCustom folder
"ToDesktop Builder Setup 0.38.3 - Build 261004ea81cac27-x64.exe" /S /D=C:\Apps\todesktop- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ecb05659-2faa-5c23-bdf5-d11c4e79b6f7
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-todesktop.ps1
$url = 'https://download.todesktop.com/2108257l5oobyoe/ToDesktop%20Builder%20Setup%200.38.3%20-%20Build%20261004ea81cac27-x64.exe'
$sha256 = '8B87B61D5B0F0C36F5CDF8D2B769CFD41682E6860DBBF60BE92A6933951154BD'
$file = Join-Path $env:TEMP 'ToDesktop Builder Setup 0.38.3 - Build 261004ea81cac27-x64.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