Commands for installing KDiff3 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 KDE.KDiff3 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.KDiff3 -e --silentwinget uninstall --id KDE.KDiff3 -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
kdiff3-1.12.4-windows-x86_64.exe /SCustom folder
kdiff3-1.12.4-windows-x86_64.exe /S /D=C:\Apps\kdiff3- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KDiff3
64-bit · EXE (NSIS) · All users
Silent install
kdiff3-1.12.4-windows-x86_64.exe /SCustom folder
kdiff3-1.12.4-windows-x86_64.exe /S /D=C:\Apps\kdiff3- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KDiff3
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-kdiff3.ps1
$url = 'https://download.kde.org/stable/kdiff3/kdiff3-1.12.4-windows-x86_64.exe'
$sha256 = '2D58B4D675934290146FAF08A239788FFC36FD6AC2C480456100FB1D8AB2BB16'
$file = Join-Path $env:TEMP 'kdiff3-1.12.4-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.4-windows-x86_64.exe'
$sha256 = '2D58B4D675934290146FAF08A239788FFC36FD6AC2C480456100FB1D8AB2BB16'
$file = Join-Path $env:TEMP 'kdiff3-1.12.4-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