Commands for installing DeskHatch 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 Theta.DeskHatch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Theta.DeskHatch -e --silentwinget uninstall --id Theta.DeskHatch -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
DeskHatch-Setup-0.1.66-x64.exe /SCustom folder
DeskHatch-Setup-0.1.66-x64.exe /S /D=C:\Apps\deskhatchPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-deskhatch.ps1
$url = 'https://github.com/kiwiman0706-beep/deskhatch/releases/download/v0.1.66/DeskHatch-Setup-0.1.66-x64.exe'
$sha256 = '718A353CC042DB9B2DFC768467A240F85719EDF182746AFAD057BA803AB40701'
$file = Join-Path $env:TEMP 'DeskHatch-Setup-0.1.66-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