Commands for installing Axe.Windows 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 Microsoft.AxeWindows -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.AxeWindows -e --silentwinget uninstall --id Microsoft.AxeWindows -e --silentBy installer
64-bit · MSI
Silent install
msiexec /i AxeWindowsCLI-2.4.2.msi /qn /norestartWrite a log
msiexec /i AxeWindowsCLI-2.4.2.msi /qn /norestart /l*v "%TEMP%\axe-windows-install.log"Uninstall
msiexec /x {AD240F79-9C35-4259-BF81-A467338D98A5} /qn /norestart- MSI product code
- {AD240F79-9C35-4259-BF81-A467338D98A5}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AD240F79-9C35-4259-BF81-A467338D98A5}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-axe-windows.ps1
$url = 'https://github.com/microsoft/axe-windows/releases/download/v2.4.2/AxeWindowsCLI-2.4.2.msi'
$sha256 = '101531B1E6255C1048DBA2EBC9F0FDFF9A76F579103546F7B35BA25B143A5BA0'
$file = Join-Path $env:TEMP 'AxeWindowsCLI-2.4.2.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