Commands for installing SnippingTool 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 DimitarRadenkov.SnippingTool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DimitarRadenkov.SnippingTool -e --silentwinget uninstall --id DimitarRadenkov.SnippingTool -e --silentBy installer
32-bit · EXE (Inno Setup) · All users · en-US
Silent install
SnippingTool-4.6.1-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
SnippingTool-4.6.1-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\snippingtool"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A3F2C1D0-8B4E-4F7A-9C6D-0E5B2A1F3E8C}_is1
- Install folder
- %ProgramFiles%\SnippingTool
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-snippingtool.ps1
$url = 'https://github.com/dimitar-radenkov/SnippingTool/releases/download/v4.6.1/SnippingTool-4.6.1-Setup.exe'
$sha256 = '10831F3428A9446DBF660C85D36D9B5402AC5E9007C68D3A5F6D81808AEAC08E'
$file = Join-Path $env:TEMP 'SnippingTool-4.6.1-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait