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.AppX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.KDiff3.AppX -e --silentwinget uninstall --id KDE.KDiff3.AppX -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path kdiff3-master-2094-windows-cl-msvc2022-x86_64-sideload.appxUninstall
Get-AppxPackage -Name KDEe.V.KDiff3 | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-kdiff3-kde-e-v.ps1
$url = 'https://cdn.kde.org/ci-builds/sdk/kdiff3/master/windows/kdiff3-master-2094-windows-cl-msvc2022-x86_64-sideload.appx'
$sha256 = '61047484F6AD4A42C06B50C3EE4D591A3CE4075A13B66C40C139CB521BC3C7CE'
$file = Join-Path $env:TEMP 'kdiff3-master-2094-windows-cl-msvc2022-x86_64-sideload.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file