Commands for installing ToDesk 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 Youqu.ToDesk -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Youqu.ToDesk -e --silentwinget uninstall --id Youqu.ToDesk -e --silentBy installer
32-bit · EXE (NSIS) · All users
Silent install
ToDesk_4.7.4.3.exe /SCustom folder
ToDesk_4.7.4.3.exe /S /D=C:\Apps\todesk- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ToDesk
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-todesk.ps1
$url = 'https://dl.todesk.com/irrigation/ToDesk_4.7.4.3.exe'
$sha256 = 'FB3FD77CBB36ABA970E2B419B826C8F3AD6FE629B6EE9DD87896971BEC1612CE'
$file = Join-Path $env:TEMP 'ToDesk_4.7.4.3.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