Install Msix Powershell May 2026
Get-AppxPackage -Name "MyCompany.MyApp" | Remove-AppxPackage For machine-wide installations (requires admin):
Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -ForceApplicationShutdown If you receive an error like "The root certificate of the signature is not trusted" , you must install the signing certificate before installing the MSIX. install msix powershell
Get-AppxPackage -Name "MyCompany.MyApp" | Select-Object * Removal is straightforward: Get-AppxPackage -Name "MyCompany
$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: While double-clicking an
MSIX is the modern Windows application packaging format that combines the best features of MSI, AppX, and ClickOnce. While double-clicking an .msix or .msixbundle file works for interactive installations, PowerShell provides a more powerful, scriptable, and automated approach—essential for IT pros, developers, and enterprise deployments.
$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: