Příkazy pro instalaci programu Setup_test 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 PMX.Setup_test -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PMX.Setup_test -e --silentwinget uninstall --id PMX.Setup_test -e --silentPodle instalátoru
64bit · MSI · zh-CN
Tichá instalace
msiexec /i Setup_test.msi /qn /norestartZapsat protokol
msiexec /i Setup_test.msi /qn /norestart /l*v "%TEMP%\setup-test-install.log"Odinstalace
msiexec /x {4B5FFE40-957C-46CC-AC55-C6456968C467} /qn /norestart- Kód produktu MSI
- {4B5FFE40-957C-46CC-AC55-C6456968C467}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4B5FFE40-957C-46CC-AC55-C6456968C467}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-setup-test.ps1
$url = 'https://github.com/Drifter011/test/releases/download/RelV0.1/Setup_test.msi'
$sha256 = 'EBC5743FE6C6CB99FA6ABD5B694B72738C6D6B331A40DC0012C7FB67952F57AB'
$file = Join-Path $env:TEMP 'Setup_test.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