Commands for installing ScanContext 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 NikolaReljin.ScanContext -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NikolaReljin.ScanContext -e --silentwinget uninstall --id NikolaReljin.ScanContext -e --silentBy installer
64-bit · EXE (NSIS) · en-US
Silent install
ScanContext_1.3.3_x64-setup.exe /SCustom folder
ScanContext_1.3.3_x64-setup.exe /S /D=C:\Apps\scancontextPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-scancontext.ps1
$url = 'https://github.com/nikolareljin/scancontext/releases/download/1.3.3/ScanContext_1.3.3_x64-setup.exe'
$sha256 = '2672FD19B6FD1D82758A556FEC6510E93430D6F1267A7815056DA3B6F55C34B4'
$file = Join-Path $env:TEMP 'ScanContext_1.3.3_x64-setup.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