Commands for installing XCA 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 ChristianHohnstadt.xca -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ChristianHohnstadt.xca -e --silentwinget uninstall --id ChristianHohnstadt.xca -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i xca-2.9.0-win64.msi /qn /norestartWrite a log
msiexec /i xca-2.9.0-win64.msi /qn /norestart /l*v "%TEMP%\xca-install.log"Uninstall
msiexec /x {9CD31286-F9BC-476F-8025-05B06EEF7510} /qn /norestart- MSI product code
- {9CD31286-F9BC-476F-8025-05B06EEF7510}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9CD31286-F9BC-476F-8025-05B06EEF7510}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-xca.ps1
$url = 'https://github.com/chris2511/xca/releases/download/RELEASE.2.9.0/xca-2.9.0-win64.msi'
$sha256 = 'B26886CFFB0170C4246A09C5E64965FAD9DA601C9A83E6B24AD2EE1B5F173638'
$file = Join-Path $env:TEMP 'xca-2.9.0-win64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait