Commands for installing keyforge 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 ElJoshua08.KeyForge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ElJoshua08.KeyForge -e --silentwinget uninstall --id ElJoshua08.KeyForge -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
keyforge-0.2.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
keyforge-0.2.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\keyforge"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ABC0E6B6-6933-4B98-BC47-065A34D87D1B}_is1
- Install folder
- %LOCALAPPDATA%\Programs\keyforge
- DisplayVersion
- 0.2.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-keyforge.ps1
$url = 'https://github.com/ElJoshua08/keyforge/releases/download/v0.2.0/keyforge-0.2.0-setup.exe'
$sha256 = 'E88DCCCEA832A1AE30B10E1DCD6B94B44BA2F94B004384FD4635E1480C665B8A'
$file = Join-Path $env:TEMP 'keyforge-0.2.0-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