Commando’s om Windows App Development CLI zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id Microsoft.WinAppCli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WinAppCli -e --silentwinget uninstall --id Microsoft.WinAppCli -e --silentPer installer
64-bits · MSIX
Stille installatie
Add-AppxPackage -Path winappcli_x64.msixVerwijderen
Get-AppxPackage -Name winapp | Remove-AppxPackage64-bits · ZIP
Geen installatie nodig (portable)
ARM64 · MSIX
Stille installatie
Add-AppxPackage -Path winappcli_arm64.msixVerwijderen
Get-AppxPackage -Name winapp | Remove-AppxPackageARM64 · ZIP
Geen installatie nodig (portable)
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-windows-app-development-cli.ps1
$url = 'https://github.com/microsoft/winappcli/releases/download/v0.8.0/winappcli_x64.msix'
$sha256 = 'DA9498585C3FAFCEC29891E4DB4D3BD28D19725A4B3AA6A42D90D042C862EAFF'
$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 install-windows-app-development-cli.ps1
$url = 'https://github.com/microsoft/winappcli/releases/download/v0.8.0/winappcli_arm64.msix'
$sha256 = 'DFB67D1CD0A47AF6E72820E61DCE56E0FF23062B5A03AC040334A181FA005E54'
$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