Forum Discussion

Gregory Bologna's avatar
Gregory Bologna
Copper Contributor
Sep 08, 2021

Cannot install or update UWP or WinUI apps using msixbundler

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>

  • Gregory Bologna's avatar
    Gregory Bologna
    Sep 10, 2021

    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.

Resources