Commands for installing Caption 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 GielCobben.Caption -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GielCobben.Caption -e --silentwinget uninstall --id GielCobben.Caption -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
caption-setup-2.0.1.exe /SCustom folder
caption-setup-2.0.1.exe /S /D=C:\Apps\captionPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-caption.ps1
$url = 'https://github.com/gielcobben/caption/releases/download/v2.0.1/caption-setup-2.0.1.exe'
$sha256 = 'F511394A5D5578B3D4A3757D306AC70B4B538E6C3B3335FDA4C38232151F645F'
$file = Join-Path $env:TEMP 'caption-setup-2.0.1.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