Commands for installing Diff 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 DBAdminX.Diff -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DBAdminX.Diff -e --silentwinget uninstall --id DBAdminX.Diff -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
Diff.Viewer_1.3.0_x64-setup.exe /SCustom folder
Diff.Viewer_1.3.0_x64-setup.exe /S /D=C:\Apps\diff- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Diff Viewer
- Install folder
- %LocalAppData%\Diff Viewer
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-diff.ps1
$url = 'https://github.com/ZeroMarker/Diff/releases/download/v1.3.0/Diff.Viewer_1.3.0_x64-setup.exe'
$sha256 = '5BE0A175BD581DAE41BFBDDE4AAFC3067DF8488296CEF364B0A8D70614426348'
$file = Join-Path $env:TEMP 'Diff.Viewer_1.3.0_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