Commands for installing postern 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 willibrandon.postern -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id willibrandon.postern -e --silentwinget uninstall --id willibrandon.postern -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i postern-0.3.2-win32-x64.msi /qn /norestartWrite a log
msiexec /i postern-0.3.2-win32-x64.msi /qn /norestart /l*v "%TEMP%\postern-install.log"Uninstall
msiexec /x {93FE5A26-694C-4C1A-9795-1CECF4A2D5F4} /qn /norestart- MSI product code
- {93FE5A26-694C-4C1A-9795-1CECF4A2D5F4}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{93FE5A26-694C-4C1A-9795-1CECF4A2D5F4}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-postern.ps1
$url = 'https://github.com/willibrandon/postern/releases/download/v0.3.2/postern-0.3.2-win32-x64.msi'
$sha256 = 'AF496881A4C2DEEC6DEEF266345D0C7192D962DAB82E1E84308F860D1215CAC6'
$file = Join-Path $env:TEMP 'postern-0.3.2-win32-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait