Ordres per instal·lar Windows App sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path WindowsApp_x64_Release_2.0.1482.0.msixDesinstal·lar
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path WindowsApp_arm64_Release_2.0.1482.0.msixDesinstal·lar
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackage32 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path WindowsApp_x86_Release_2.0.1482.0.msixDesinstal·lar
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-windows-app.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/390902f9-2a4c-42d4-a574-c56461957534/WindowsApp_x64_Release_2.0.1482.0.msix'
$sha256 = '2FEF58ED626C5E611B70B1F0161F2B4F0FB877092F22B102BBDE2F15BE127AF4'
$file = Join-Path $env:TEMP 'WindowsApp_x64_Release_2.0.1482.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/c156d3e8-85f6-4111-bf6a-fc655e745642/WindowsApp_arm64_Release_2.0.1482.0.msix'
$sha256 = 'A51AB3ECA6A0BFA77A4C6D6DA538154BDA0EDBB53A1051BD56940784C521EED5'
$file = Join-Path $env:TEMP 'WindowsApp_arm64_Release_2.0.1482.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/477617b7-ba1e-48b9-a2c8-14cd1c2722d5/WindowsApp_x86_Release_2.0.1482.0.msix'
$sha256 = '4479B84F6B609810771CE1C57C7F7E466FE0C792E7D20BAFA667D41FACBBBBE0'
$file = Join-Path $env:TEMP 'WindowsApp_x86_Release_2.0.1482.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