Commando’s om Diff zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met 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 --silentPer installer
64-bits · EXE (NSIS) · Huidige gebruiker · en-US
Stille installatie
Diff.Viewer_1.3.0_x64-setup.exe /SAndere map
Diff.Viewer_1.3.0_x64-setup.exe /S /D=C:\Apps\diff- Registersleutel voor verwijderen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Diff Viewer
- Installatiemap
- %LocalAppData%\Diff Viewer
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
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