Příkazy pro instalaci programu Screenbits 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 Chehraz.Screenbits -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Chehraz.Screenbits -e --silentwinget uninstall --id Chehraz.Screenbits -e --silentPodle instalátoru
64bit · MSI · en-US
Tichá instalace
msiexec /i Screenbits.Installer-10.10.1-x64.msi /qn /norestartZapsat protokol
msiexec /i Screenbits.Installer-10.10.1-x64.msi /qn /norestart /l*v "%TEMP%\screenbits-install.log"Odinstalace
msiexec /x {5DEAC802-2413-47DD-BE34-4AF640995ED6} /qn /norestart- Kód produktu MSI
- {5DEAC802-2413-47DD-BE34-4AF640995ED6}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5DEAC802-2413-47DD-BE34-4AF640995ED6}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-screenbits.ps1
$url = 'https://screenbits.com/downloads/packages/Screenbits.Installer-10.10.1-x64.msi'
$sha256 = '6C244E799A5702EF7BADA69607599D4BCADC3912938461C160E94122D83ECD0A'
$file = Join-Path $env:TEMP 'Screenbits.Installer-10.10.1-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