Hi @Manjunath Vadigeri ,
Thanks for reaching out.
Here are answers to your questions:
1. What are the common reasons for MSIX installation to fail with 0x80070005 on machines with UAC enabled?
The error 0x80070005 means “Access Denied.” On UAC-enabled machines, this typically happens because:
- Permissions - Installing to protected folders like
WindowsAppsrequires admin rights. - Certificate trust - The MSIX package may be signed with a certificate the PC doesn’t trust.
- Leftover files - Remnants from previous installations can block a new install.
- Capabilities requiring elevation - Some app features may require admin privileges.
- Strict policies - Group policies or enterprise settings may prevent installation for standard users.
In short, it’s usually a mix of permissions, trust, and leftover files.
2. What is the recommended way to ensure the MSIX installs with administrator permissions when required?
The most reliable way is to run the installation in an elevated context:
- PowerShell as Administrator:
Add-AppxPackage -Path "C:\path\to\your.appx"
- Bootstrapper
.exe- a small installer that requests admin rights and then installs the MSIX automatically.
MSIX itself cannot trigger UAC elevation automatically by double-clicking - you need one of these approaches if admin permissions are required.
3. Is there any supported way to make the MSIX trigger elevation?
No. MSIX packages cannot automatically prompt for UAC elevation on their own. If your app requires admin rights, you must either:
- Use a bootstrapper
.exethat runs elevated and installs the MSIX. - Install via PowerShell in Administrator mode.
Simply double-clicking the MSIX will not trigger elevation.
4. Are there preferred guidelines from Microsoft for handling MSIX installs on systems with strict UAC policies?
While there’s no magic feature to bypass UAC, Microsoft’s guidance is:
- Prefer per-user installs whenever possible - these don’t require admin rights and avoid UAC issues.
- Ensure the signing certificate is trusted on the target PC.
- Clean up leftovers from previous installs to prevent conflicts.
- Use enterprise deployment tools like Intune or SCCM in managed environments - they handle permissions and policies automatically.
https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare
https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes
5. Is there a recommended packaging or deployment approach for MAUI apps to avoid this issue and allow smooth installation for end-users without requiring PowerShell?
- Per-user MSIX if the app doesn’t need admin privileges - avoids UAC problems.
- Bootstrapper
.exeif admin rights are required, so it can handle elevation automatically. - Ensure the signing certificate is trusted on all target machines.
- For corporate or managed environments, deploy via Intune or SCCM to manage permissions and policy restrictions smoothly.
In short: package for per-user installs whenever possible, and only use elevation/bootstrapper if absolutely necessary.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.