Commands for installing Ghost Trap 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 PaperCutSoftware.GhostTrap -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PaperCutSoftware.GhostTrap -e --silentwinget uninstall --id PaperCutSoftware.GhostTrap -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
ghost-trap-installer-1.6.10.08.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ghost-trap-installer-1.6.10.08.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ghost-trap"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ghost Trap_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ghost-trap.ps1
$url = 'https://cdn.papercut.com/web/products/open-source/ghost-trap/installers/windows/ghost-trap-installer-1.6.10.08.exe'
$sha256 = '6BAFF826F7FEA81FB6B7BC255526575BED7A4C92B05FCF497329899200CB898B'
$file = Join-Path $env:TEMP 'ghost-trap-installer-1.6.10.08.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