What is the powershell command for installing .AppxBundle and .Msixbundle on Windows 11…
- User
What is the powershell command for installing .AppxBundle and .Msixbundle on Windows 11 without Microsoft Store?
- Assistant
What is the powershell command for installing .AppxBundle and .Msixbundle on Windows 11 without Microsoft Store?
To install .appxbundle or .msixbundle packages on Windows 11 without using the Microsoft Store, you can utilize the PowerShell cmdlet Add-AppxPackage. Below are the steps and commands to achieve this:
Enable Sideloading or Developer Mode:
Ensure Dependencies Are Available:
Open PowerShell as Administrator:
Win + X and select Windows Terminal (Admin) or PowerShell (Admin).Run the Add-AppxPackage Command:
For a Single .appxbundle or .msixbundle File:
Add-AppxPackage -Path "C:\Path\To\YourPackage.appxbundle"
or
Add-AppxPackage -Path "C:\Path\To\YourPackage.msixbundle"
Including Dependencies:
If your package has dependencies, include them using the -DependencyPath parameter.
Add-AppxPackage -Path "C:\Path\To\YourPackage.appxbundle" -DependencyPath "C:\Path\To\Dependency1.appx", "C:\Path\To\Dependency2.appx"
You can list multiple dependencies separated by commas.
Force Update If Needed:
To force an update from any version, you can add the -ForceUpdateFromAnyVersion flag.
Add-AppxPackage -Path "C:\Path\To\YourPackage.appxbundle" -ForceUpdateFromAnyVersion
Handling Certificates:
Import-Certificate -FilePath "C:\Path\To\Certificate.cer" -CertStoreLocation Cert:\LocalMachine\TrustedPeople
Verifying Installation:
Get-AppxPackage -Name "YourPackageName"
Installing an .appxbundle:
Add-AppxPackage -Path "C:\Users\JohnDoe\Downloads\MyApp.appxbundle"
Installing an .msixbundle with Dependencies:
Add-AppxPackage -Path "C:\Users\JohnDoe\Downloads\MyApp.msixbundle" -DependencyPath "C:\Users\JohnDoe\Downloads\Dependency1.appx", "C:\Users\JohnDoe\Downloads\Dependency2.appx"
Administrator Rights: Ensure you run PowerShell with administrative privileges to avoid permission issues.
Execution Policy: If you encounter execution policy restrictions, you might need to adjust them temporarily:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
Remember to set it back to its original state after installation for security.
Troubleshooting: If you encounter errors, check the following:
By following these steps and using the Add-AppxPackage cmdlet, you can successfully install .appxbundle and .msixbundle packages on Windows 11 without relying on the Microsoft Store.
Not yet included in a published release.