Commands for installing Insomnia 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 Insomnia.Insomnia -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Insomnia.Insomnia -e --silentwinget uninstall --id Insomnia.Insomnia -e --silentBy installer
64-bit · EXE · Current user
Silent install
Insomnia.Core-13.4.0.exe --silent- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\insomnia
- Install folder
- %LocalAppData%\insomnia
- DisplayVersion
- 13.4.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-insomnia.ps1
$url = 'https://github.com/Kong/insomnia/releases/download/core@13.4.0/Insomnia.Core-13.4.0.exe'
$sha256 = '346BAFBF9DD49DD5B3CF3847F75258242D474DBF2579F146A9E996135CD14327'
$file = Join-Path $env:TEMP 'Insomnia.Core-13.4.0.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 '--silent' -Wait