Access denied error when installing .MAUI sideload misx package

Muhammad Kamran 1 Reputation point
2022-09-08T00:18:16.98+00:00

I published .NET MAUI Windows MSIX to sideload that is signed with a valid certificate. When I click .msix file, nothing happened because msix extension was not known on windows 10 by default. It seems that I have to install App Installer from Microsoft Store to recognise msix extension. After installing App Installer, I clicked on .msix file it showed me installer window, when I clicked on Install button it showed me following error: App installation failed with error message: Access is denied. (0x80070005). Why am I getting this error? Then I open power shell without elevated admin rights and run Install.ps1 script it showed me Add-AppxPackage : Deployment failed with HRESULT: 0x80070005, Access is denied. error. After that I run power shell with elevated admin rights, and run Install.ps1, then it installed my package. So it is installing sideload package only from powershell with admin rights. How can we make it installable by double clicking misx file without admin rights?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,812 questions
{count} votes