Install Msix Powershell May 2026
Add-AppxPackage -Path "C:\Downloads\MyApp.msixbundle" PowerShell automatically selects the correct version for the current system. To install an MSIX package for every user on the machine, you must run PowerShell as Administrator and use the -AllUsers switch:
$CertPath = "C:\Certs\MyCompany.cer" $Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertPath) $Store = New-Object System.Security.Cryptography.X509Certificates.X509Store( "Root", "LocalMachine" ) $Store.Open("ReadWrite") $Store.Add($Cert) $Store.Close() Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -AllUsers Security Warning: Only trust certificates from legitimate sources. Installing from a URL (Download + Install) You can download and install an MSIX in a single script without saving the file permanently:
$Url = "https://example.com/apps/MyApp.msix" $TempFile = Join-Path $env:TEMP "temp_install.msix" Invoke-WebRequest -Uri $Url -OutFile $TempFile Add-AppxPackage -Path $TempFile Remove-Item $TempFile -Force To confirm the package installed correctly: install msix powershell
Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -AllUsers Machine-wide installation requires a trusted, signed MSIX package. The certificate must be installed in the Local Machine’s trusted store beforehand. Silent Installation (No UI) MSIX installs silently by default when using Add-AppxPackage . However, you can suppress any PowerShell output or errors:
First, export the certificate from the MSIX (or obtain it from the publisher). Then add it to the store: Add-AppxPackage -Path "C:\Downloads\MyApp
Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -ErrorAction SilentlyContinue For fully unattended scripts, combine with -ForceApplicationShutdown to close running instances of the app:
Get-AppxPackage -Name "*MyApp*" To see detailed information (version, install location, publisher): The certificate must be installed in the Local
$Dependencies = @( "C:\Dependencies\Microsoft.VCLibs.x64.14.00.msix", "C:\Dependencies\Microsoft.UI.Xaml.2.7.msix" ) Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -DependencyPath $Dependencies For .msixbundle files (which contain multiple architectures and variants), use the same -Path parameter: