Les commandes pour installer Windows App Development CLI sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
winget install --id Microsoft.WinAppCli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WinAppCli -e --silentwinget uninstall --id Microsoft.WinAppCli -e --silentPar installateur
64 bits · MSIX
Add-AppxPackage -Path winappcli_x64.msixGet-AppxPackage -Name winapp | Remove-AppxPackage64 bits · ZIP
Aucune installation nécessaire (portable)
ARM64 · MSIX
Add-AppxPackage -Path winappcli_arm64.msixGet-AppxPackage -Name winapp | Remove-AppxPackageARM64 · ZIP
Aucune installation nécessaire (portable)
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
$url = 'https://github.com/microsoft/winappcli/releases/download/v0.7.1/winappcli_x64.msix'
$sha256 = '6B7310C80EBD8DAE5B51CD84A23CCF6001381DB28AE7B49472FC6A54255F7310'
$file = Join-Path $env:TEMP 'winappcli_x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file $url = 'https://github.com/microsoft/winappcli/releases/download/v0.7.1/winappcli_arm64.msix'
$sha256 = '07B37A0F7A6DE0816BBB0C888711F0AACCECBAF92A3DAE6E45024CA944AD8B93'
$file = Join-Path $env:TEMP 'winappcli_arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file