Příkazy pro instalaci programu Subsurface 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 Subsurface.Subsurface -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Subsurface.Subsurface -e --silentwinget uninstall --id Subsurface.Subsurface -e --silentPodle instalátoru
64bit · EXE (NSIS)
Tichá instalace
subsurface-6.0.5504-CICD-release-installer.exe /SVlastní složka
subsurface-6.0.5504-CICD-release-installer.exe /S /D=C:\Apps\subsurfacePowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-subsurface.ps1
$url = 'https://subsurface-divelog.org/downloads/subsurface-6.0.5504-CICD-release-installer.exe'
$sha256 = 'C23CC1421141D271FA4D7E624F30359F047842E75843375264275ABB55AD1795'
$file = Join-Path $env:TEMP 'subsurface-6.0.5504-CICD-release-installer.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait