Příkazy pro instalaci programu postern bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes 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 --silentPodle instalátoru
64bit · MSI · Všichni uživatelé
Tichá instalace
msiexec /i postern-0.3.2-win32-x64.msi /qn /norestartZapsat protokol
msiexec /i postern-0.3.2-win32-x64.msi /qn /norestart /l*v "%TEMP%\postern-install.log"Odinstalace
msiexec /x {93FE5A26-694C-4C1A-9795-1CECF4A2D5F4} /qn /norestart- Kód produktu MSI
- {93FE5A26-694C-4C1A-9795-1CECF4A2D5F4}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{93FE5A26-694C-4C1A-9795-1CECF4A2D5F4}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
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