Příkazy pro instalaci programu OwlPlug 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 OwlPlug.OwlPlug -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OwlPlug.OwlPlug -e --silentwinget uninstall --id OwlPlug.OwlPlug -e --silentPodle instalátoru
64bit · MSI
Tichá instalace
msiexec /i OwlPlug-2.1.1-win-x64.msi /qn /norestartZapsat protokol
msiexec /i OwlPlug-2.1.1-win-x64.msi /qn /norestart /l*v "%TEMP%\owlplug-install.log"Odinstalace
msiexec /x {9D65B3A4-F8FF-3D21-8FF3-3C54C18E6EFB} /qn /norestart- Kód produktu MSI
- {9D65B3A4-F8FF-3D21-8FF3-3C54C18E6EFB}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9D65B3A4-F8FF-3D21-8FF3-3C54C18E6EFB}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-owlplug.ps1
$url = 'https://github.com/DropSnorz/OwlPlug/releases/download/2.1.1/OwlPlug-2.1.1-win-x64.msi'
$sha256 = '8C6F42F3E91E11521CE4D832D10DCA32CB4E9542229A9CFBBF8710D5EBA0A7DC'
$file = Join-Path $env:TEMP 'OwlPlug-2.1.1-win-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