Commando’s om KDiff3 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 KDE.KDiff3 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.KDiff3 -e --silentwinget uninstall --id KDE.KDiff3 -e --silentPer installer
64-bits · EXE (NSIS) · Huidige gebruiker
Stille installatie
kdiff3-1.12.6-windows-x86_64.exe /SAndere map
kdiff3-1.12.6-windows-x86_64.exe /S /D=C:\Apps\kdiff3- Registersleutel voor verwijderen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KDiff3
64-bits · EXE (NSIS) · Alle gebruikers
Stille installatie
kdiff3-1.12.6-windows-x86_64.exe /SAndere map
kdiff3-1.12.6-windows-x86_64.exe /S /D=C:\Apps\kdiff3- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KDiff3
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-kdiff3.ps1
$url = 'https://download.kde.org/stable/kdiff3/kdiff3-1.12.6-windows-x86_64.exe'
$sha256 = '7C575F1EE9500C1451F84B50FEBAE220AFEF4C8B657B7AB36E7B5998CD30E229'
$file = Join-Path $env:TEMP 'kdiff3-1.12.6-windows-x86_64.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 install-kdiff3.ps1
$url = 'https://download.kde.org/stable/kdiff3/kdiff3-1.12.6-windows-x86_64.exe'
$sha256 = '7C575F1EE9500C1451F84B50FEBAE220AFEF4C8B657B7AB36E7B5998CD30E229'
$file = Join-Path $env:TEMP 'kdiff3-1.12.6-windows-x86_64.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