Kommandon för att installera Windows App utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Microsoft.WindowsApp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsApp -e --silentwinget uninstall --id Microsoft.WindowsApp -e --silentPer installationsfil
64-bitars · MSIX
Tyst installation
Add-AppxPackage -Path WindowsApp_x64_Release_2.0.1489.0.msixAvinstallation
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackageARM64 · MSIX
Tyst installation
Add-AppxPackage -Path WindowsApp_arm64_Release_2.0.1489.0.msixAvinstallation
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackage32-bitars · MSIX
Tyst installation
Add-AppxPackage -Path WindowsApp_x86_Release_2.0.1489.0.msixAvinstallation
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackagePowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-windows-app.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/41c6e2cb-c6db-4b75-ad5f-d29c45e17a8a/WindowsApp_x64_Release_2.0.1489.0.msix'
$sha256 = 'AB72E14802985CA1B05ADD7E5A3116AF104A37F5424026426349779E74CA397E'
$file = Join-Path $env:TEMP 'WindowsApp_x64_Release_2.0.1489.0.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.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/bd6e2c89-ac0e-4899-b21a-3bdd1f2f46fb/WindowsApp_arm64_Release_2.0.1489.0.msix'
$sha256 = '5159825D2DC3EB8B526ABE4496448F261C27DDE5A60B61CBBC9D77E943FB073F'
$file = Join-Path $env:TEMP 'WindowsApp_arm64_Release_2.0.1489.0.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.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/0208cfd8-c8b5-4e7d-b24f-a6c79a7cc558/WindowsApp_x86_Release_2.0.1489.0.msix'
$sha256 = 'B6BADF40125A8E13B3158E539231D4744DBA512007C620221AE396EE2015C5A9'
$file = Join-Path $env:TEMP 'WindowsApp_x86_Release_2.0.1489.0.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file