Kommandoer til at installere Windows App Development CLI uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
64-bit · MSIX
Add-AppxPackage -Path winappcli_x64.msixGet-AppxPackage -Name winapp | Remove-AppxPackage64-bit · ZIP
Kræver ingen installation (portabel)
ARM64 · MSIX
Add-AppxPackage -Path winappcli_arm64.msixGet-AppxPackage -Name winapp | Remove-AppxPackageARM64 · ZIP
Kræver ingen installation (portabel)
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
$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