Příkazy pro instalaci programu QuPath 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 UniversityOfEdinburgh.QuPath -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id UniversityOfEdinburgh.QuPath -e --silentwinget uninstall --id UniversityOfEdinburgh.QuPath -e --silentPodle instalátoru
64bit · MSI · Aktuální uživatel · en-US
Tichá instalace
msiexec /i QuPath-v0.7.0-Windows.msi /qn /norestartZapsat protokol
msiexec /i QuPath-v0.7.0-Windows.msi /qn /norestart /l*v "%TEMP%\qupath-install.log"Odinstalace
msiexec /x {2D29F351-33F1-318E-9A68-9C925969A070} /qn /norestart- Kód produktu MSI
- {2D29F351-33F1-318E-9A68-9C925969A070}
- Klíč odinstalace v registru
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2D29F351-33F1-318E-9A68-9C925969A070}
- UpgradeCode
- {3D26AFDD-75FD-3065-B7C3-F8526C07DCD3}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-qupath.ps1
$url = 'https://github.com/qupath/qupath/releases/download/v0.7.0/QuPath-v0.7.0-Windows.msi'
$sha256 = '03999C2D8DFAD1841786EBC5704B2ADC111471A77FB39466B6008C322FCAFB2C'
$file = Join-Path $env:TEMP 'QuPath-v0.7.0-Windows.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