Opdragte om Windows App Development CLI sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die 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 --silentVolgens installeerder
64-bis · MSIX
Stil installasie
Add-AppxPackage -Path winappcli_x64.msixDeïnstalleer
Get-AppxPackage -Name winapp | Remove-AppxPackage64-bis · ZIP
Geen installasie nodig nie (draagbaar)
ARM64 · MSIX
Stil installasie
Add-AppxPackage -Path winappcli_arm64.msixDeïnstalleer
Get-AppxPackage -Name winapp | Remove-AppxPackageARM64 · ZIP
Geen installasie nodig nie (draagbaar)
PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit 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