Commands for installing Subsurface without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · EXE (NSIS)
Silent install
subsurface-6.0.5504-CICD-release-installer.exe /SCustom folder
subsurface-6.0.5504-CICD-release-installer.exe /S /D=C:\Apps\subsurfacePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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