msix-packaging icon indicating copy to clipboard operation
msix-packaging copied to clipboard

[BUG] msixbundle fails to update from appinstaller

Open Ryanz20 opened this issue 4 years ago • 12 comments

Project MSIX

Describe the bug After installing an msixbundle successfully by using the appinstaller from web subsequent updates will fail until the Delivery Optimization service is restarted (or the machine restarted)

When error occurs the event viewer shows a error in AppXDevelopment-Server Error 0x80070002: Opening the Msixvc package from location AppName.msixbundle failed. Please check whether the Msixvc support services are installed.

To Reproduce Install msixbundle via appInstaller (successful) produce a updated appInstaller/msixbundle invoke appInstaller again (fails)

Expected behavior msixbundle would update

Platform Windows 10 2004+

Additional context Issue has been reported here with no updates: https://techcommunity.microsoft.com/t5/msix-deployment/windows-10-2004-msix-not-updating-please-check-whether-the/m-p/1466701/

Ryanz20 avatar Aug 05 '21 15:08 Ryanz20

@msftrubengu COME ON

HppZ avatar Oct 26 '21 09:10 HppZ

@msftphil PLEASE HELP.

HppZ avatar Oct 26 '21 10:10 HppZ

I used to have this issue, but it went away after changing some things in my build process. What are you using for building, a YAML file? Could you post it here?

ghost avatar Nov 01 '21 10:11 ghost

I use msbuild command line.

HppZ avatar Nov 01 '21 11:11 HppZ

Could you write out what command and with which parameters?

ghost avatar Nov 01 '21 12:11 ghost

msbuild.exe "/t:Rebuild /p:Platform=x64 /p:Configuration=Release /p:UapAppxPackageBuildMode=SideLoadOnly /p:GenerateAppInstallerFile=True /p:AppInstallerUri=http://localhost"

localhost will be replaced later in appinstaller file.

HppZ avatar Nov 01 '21 13:11 HppZ

@MaikelScheffer

HppZ avatar Nov 05 '21 04:11 HppZ

What does your output look like? @HppZ

ghost avatar Nov 05 '21 11:11 ghost

What does your output look like? @HppZ

Please check whether the Msixvc support services are installed.

HppZ avatar Nov 05 '21 11:11 HppZ

Ah. I thought that was when you tried opening the package, but there's no output at all? Not even in de bin or publish folders?

What does the log say? C:\Users\YOUR_NAME\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\AILog.txt

ghost avatar Nov 05 '21 12:11 ghost

What bin/publish folders? I will share AILog.txt next time.

HppZ avatar Nov 05 '21 12:11 HppZ