SOLVED

Cannot install or update UWP or WinUI apps using msixbundler

%3CLINGO-SUB%20id%3D%22lingo-sub-2733723%22%20slang%3D%22en-US%22%3ECannot%20install%20or%20update%20UWP%20or%20WinUI%20apps%20using%20msixbundler%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2733723%22%20slang%3D%22en-US%22%3E%3CP%3EI%20used%20VS2019%20(Version%2016.11.2)%20to%20create%20a%20C%23%20%22Blank%20App%2C%20Packaged%20(WinUI%203%20in%20Desktop)%22%20project%20to%20test%20automatic%20updates.%26nbsp%3B%20I%20have%20a%20trusted%20certificate%20imported%20to%20%22Trusted%20Root%20Certification%20Authorities%22%20and%20used%20%22Create%20App%20Packages%22%20to%20create%20the%20package%20installer%20and%20sideload%20the%20app.%20I%20also%20have%20developer%20mode%20enabled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20only%20install%20the%20app%20using%20%22Add-AppDevPackage.ps1%22%20in%20Powershell.%26nbsp%3BIf%20I%20use%20the%20msixbundler%20or%20the%20index.html%2C%20the%20installer%20detects%20if%20installed%20or%20if%20it%20should%20update%2C%20but%20running%20always%20fails%20with%20%22App%20installation%20failed%20with%20error%20message%3A%20Access%20is%20denied.%20(0x80070005)%22.%20The%20attached%20screenshot%20shows%20this.%20I%20repeated%20this%20with%20the%20same%20results%20for%20a%20blank%20UWP%20app.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20machine%20I%20am%20trying%20to%20update%20the%20app%20on.%3C%2FP%3E%3CP%3EEdition%20Windows%2010%20Pro%3CBR%20%2F%3EVersion%2021H1%3CBR%20%2F%3EInstalled%20on%20%E2%80%8E8%2F%E2%80%8E25%2F%E2%80%8E2021%3CBR%20%2F%3EOS%20build%2019043.1165%3CBR%20%2F%3EExperience%20Windows%20Feature%20Experience%20Pack%20120.2212.3530.0%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Euwptest.appinstaller%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CAPPINSTALLER%3E%3CBR%20%2F%3EUri%3D%22file%3A%2F%2F%2FC%3A%2Ftmp%2Fuwptest.appinstaller%22%3CBR%20%2F%3EVersion%3D%221.0.1.0%22%20xmlns%3D%22%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fappinstaller%2F2017%2F2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fappinstaller%2F2017%2F2%3C%2FA%3E%22%26gt%3B%3CBR%20%2F%3E%3CMAINBUNDLE%3E%3CBR%20%2F%3EName%3D%22347108a8-5efd-41f9-b8ee-26e143ea5399%22%3CBR%20%2F%3EVersion%3D%221.0.1.0%22%3CBR%20%2F%3EPublisher%3D%22CN%3Dvsis.manateepao.gov%2C%20O%3Dvsis.manateepao.gov%2C%20C%3DUS%22%3CBR%20%2F%3EUri%3D%22file%3A%2F%2F%2FC%3A%2Ftmp%2Fuwptest_1.0.1.0_Test%2Fuwptest_1.0.1.0_x64.msixbundle%22%20%2F%26gt%3B%3CBR%20%2F%3E%3CDEPENDENCIES%3E%3CBR%20%2F%3E%3CPACKAGE%3E%3CBR%20%2F%3EName%3D%22Microsoft.NET.Native.Framework.2.2%22%3CBR%20%2F%3EPublisher%3D%22CN%3DMicrosoft%20Corporation%2C%20O%3DMicrosoft%20Corporation%2C%20L%3DRedmond%2C%20S%3DWashington%2C%20C%3DUS%22%3CBR%20%2F%3EProcessorArchitecture%3D%22x64%22%3CBR%20%2F%3EUri%3D%22file%3A%2F%2F%2FC%3A%2Ftmp%2Fuwptest_1.0.1.0_Test%2FDependencies%2Fx64%2FMicrosoft.NET.Native.Framework.2.2.appx%22%3CBR%20%2F%3EVersion%3D%222.2.29512.0%22%20%2F%26gt%3B%3CBR%20%2F%3E%3CPACKAGE%3E%3CBR%20%2F%3EName%3D%22Microsoft.NET.Native.Runtime.2.2%22%3CBR%20%2F%3EPublisher%3D%22CN%3DMicrosoft%20Corporation%2C%20O%3DMicrosoft%20Corporation%2C%20L%3DRedmond%2C%20S%3DWashington%2C%20C%3DUS%22%3CBR%20%2F%3EProcessorArchitecture%3D%22x64%22%3CBR%20%2F%3EUri%3D%22file%3A%2F%2F%2FC%3A%2Ftmp%2Fuwptest_1.0.1.0_Test%2FDependencies%2Fx64%2FMicrosoft.NET.Native.Runtime.2.2.appx%22%3CBR%20%2F%3EVersion%3D%222.2.28604.0%22%20%2F%26gt%3B%3CBR%20%2F%3E%3CPACKAGE%3E%3CBR%20%2F%3EName%3D%22Microsoft.VCLibs.140.00%22%3CBR%20%2F%3EPublisher%3D%22CN%3DMicrosoft%20Corporation%2C%20O%3DMicrosoft%20Corporation%2C%20L%3DRedmond%2C%20S%3DWashington%2C%20C%3DUS%22%3CBR%20%2F%3EProcessorArchitecture%3D%22x64%22%3CBR%20%2F%3EUri%3D%22file%3A%2F%2F%2FC%3A%2Ftmp%2Fuwptest_1.0.1.0_Test%2FDependencies%2Fx64%2FMicrosoft.VCLibs.x64.14.00.appx%22%3CBR%20%2F%3EVersion%3D%2214.0.30035.0%22%20%2F%26gt%3B%3CBR%20%2F%3E%3C%2FPACKAGE%3E%3CBR%20%2F%3E%3CUPDATESETTINGS%3E%3CBR%20%2F%3E%3CONLAUNCH%3E%3CBR%20%2F%3EHoursBetweenUpdateChecks%3D%220%22%20%2F%26gt%3B%3CBR%20%2F%3E%3C%2FONLAUNCH%3E%3CBR%20%2F%3E%3C%2FUPDATESETTINGS%3E%3C%2FPACKAGE%3E%3C%2FPACKAGE%3E%3C%2FDEPENDENCIES%3E%3C%2FMAINBUNDLE%3E%3C%2FAPPINSTALLER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2738960%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20install%20or%20update%20UWP%20or%20WinUI%20apps%20using%20msixbundler%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2738960%22%20slang%3D%22en-US%22%3EDoes%20it%20work%20on%20another%20machine%3F%20Do%20you%20have%20this%20problem%20with%20other%20MSIX%20packages%20on%20the%20same%20machine%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20was%20a%20time%20when%20I%20had%20similar%20problems%20(I%20was%20able%20to%20install%20MSIX%20packages%20only%20with%20PowerShell%20-%20if%20I%20remember%20correctly%20an%20OS%20update%20messed%20up%20something).%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20it%20is%20something%20similar%20affecting%20your%20machine.%20From%20what%20I%20can%20see%20this%20generic%20error%20has%20a%20long%20history%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fwindows%2Fforum%2Fall%2Fcant-install-apps-from-store-error-0x80070005%2F1da61861-26ee-41b4-ada9-8ac516b0107a%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fwindows%2Fforum%2Fall%2Fcant-install-apps-from-store-error-0x80070005%2F1da61861-26ee-41b4-ada9-8ac516b0107a%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2739609%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20install%20or%20update%20UWP%20or%20WinUI%20apps%20using%20msixbundler%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2739609%22%20slang%3D%22en-US%22%3E%3CP%3EBogdan%2C%20I%20got%20it%20working%20on%20a%20brand%20new%20Win10%20machine%20that%20was%20not%20added%20to%20our%20domain.%20The%20install%20and%20update%20work%20great.%20Next%20we%20will%20add%20the%20machine%20to%20the%20domain%20and%20the%20install%20should%20break%2C%20which%20means%20we%20need%20to%20identify%20whatever%20group%20policy%20is%20preventing%20this%20from%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I used VS2019 (Version 16.11.2) to create a C# "Blank App, Packaged (WinUI 3 in Desktop)" project to test automatic updates.  I have a trusted certificate imported to "Trusted Root Certification Authorities" and used "Create App Packages" to create the package installer and sideload the app. I also have developer mode enabled.

 

I can only install the app using "Add-AppDevPackage.ps1" in Powershell. If I use the msixbundler or the index.html, the installer detects if installed or if it should update, but running always fails with "App installation failed with error message: Access is denied. (0x80070005)". The attached screenshot shows this. I repeated this with the same results for a blank UWP app. 

 

This is the machine I am trying to update the app on.

Edition Windows 10 Pro
Version 21H1
Installed on ‎8/‎25/‎2021
OS build 19043.1165
Experience Windows Feature Experience Pack 120.2212.3530.0

 

uwptest.appinstaller

 

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="file:///C:/tmp/uwptest.appinstaller"
Version="1.0.1.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
<MainBundle
Name="347108a8-5efd-41f9-b8ee-26e143ea5399"
Version="1.0.1.0"
Publisher="CN=vsis.manateepao.gov, O=vsis.manateepao.gov, C=US"
Uri="file:///C:/tmp/uwptest_1.0.1.0_Test/uwptest_1.0.1.0_x64.msixbundle" />
<Dependencies>
<Package
Name="Microsoft.NET.Native.Framework.2.2"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
ProcessorArchitecture="x64"
Uri="file:///C:/tmp/uwptest_1.0.1.0_Test/Dependencies/x64/Microsoft.NET.Native.Framework.2.2.appx"
Version="2.2.29512.0" />
<Package
Name="Microsoft.NET.Native.Runtime.2.2"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
ProcessorArchitecture="x64"
Uri="file:///C:/tmp/uwptest_1.0.1.0_Test/Dependencies/x64/Microsoft.NET.Native.Runtime.2.2.appx"
Version="2.2.28604.0" />
<Package
Name="Microsoft.VCLibs.140.00"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
ProcessorArchitecture="x64"
Uri="file:///C:/tmp/uwptest_1.0.1.0_Test/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx"
Version="14.0.30035.0" />
</Dependencies>
<UpdateSettings>
<OnLaunch
HoursBetweenUpdateChecks="0" />
</UpdateSettings>
</AppInstaller>

2 Replies
Does it work on another machine? Do you have this problem with other MSIX packages on the same machine?

There was a time when I had similar problems (I was able to install MSIX packages only with PowerShell - if I remember correctly an OS update messed up something).

Maybe it is something similar affecting your machine. From what I can see this generic error has a long history:
https://answers.microsoft.com/en-us/windows/forum/all/cant-install-apps-from-store-error-0x80070005/...
best response confirmed by Gregory Bologna (New Contributor)
Solution

Bogdan, I got it working on a brand new Win10 machine that was not added to our domain. The install and update work great. Next we will add the machine to the domain and the install should break, which means we need to identify whatever group policy is preventing this from working.