Commands for installing Sshairy 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 Marchen-orz.Sshairy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Marchen-orz.Sshairy -e --silentwinget uninstall --id Marchen-orz.Sshairy -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
sshairy-0.3.5-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
sshairy-0.3.5-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sshairy"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8C0D5E2A-2F4B-4E77-9B5C-3A6D1F9E4B21}_is1
- Install folder
- %LocalAppData%\Programs\Sshairy
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-sshairy.ps1
$url = 'https://github.com/Marchen-orz/Sshairy/releases/download/v0.3.5/sshairy-0.3.5-windows-x64-setup.exe'
$sha256 = 'C831A45B4C5EF9C7D8D88878CE0A46191A9D7874D73AFB938A0770CF9BC27919'
$file = Join-Path $env:TEMP 'sshairy-0.3.5-windows-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait