Migrate UWP App to MAUI Windows: Error after update with MSIX

Reinhard Lackner 6 Reputation points
2022-09-09T10:33:57.39+00:00

I currently have a Xamarin Forms UWP App in the Microsoft Store.
In the next months I want to update it to MAUI.
For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin Forms app to MAUI with side loading for Windows.

After installing the MAUI-msix-Update, an error appears:
239407-image.png

Is this a general problem or do I have a specific issue in my manifest?
Sample app:
https://github.com/reinhardlackner/SampleUpdateMauiApp
239420-image.png

  • Debugging is working correctly (I can start the UWP-App "SampleUpdateApp.UWP" in Debug mode... and after closing it I can start the MAUI-App "SampleNewUpdatedApp") - and the saved click-data from the UWP app are shown in the MAUI app:
    239449-image.png
    • Sideloading-Update does not work:
      a) SampleUpdateApp.UWP - Right click => Publish... Sideloading
      Use test certificate
      239456-image.png
      239340-image.png
      Install UWP app appxbundle-file:
      239457-image.png
      UWP-App opens after installation=> OK
      239465-image.png

b) Install MAUI App as Update
SampleNewUpdatedApp - Right click => Publish... Sideloading
Use same certificate
Create MSIX x86 publishing profile and version is 1.0.1 (update of Xamarin 1.0.0)
239430-image.png

Start created msix-Package and click on Update:
239380-image.png

Error message is shown (and Update of the previously installed Xamarin App is not possible):
239409-image.png
App installation failed with error message: Deployment Add operation with target volume C: on Package E965F79B-76C7-47E0-8308-4A503105EDE0_1.0.1.0_x86__ab06nvn9z6x6m from: (SampleNewUpdatedApp_1.0.1.0_x86.msix) failed with error 0x80073CF3. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf3)

  • If you uninstall the prevously installed Xamarin app, the MAUI App can be installed correctly:
    239466-image.png

Does anybody have an idea why the update installation is not possible?
I assume it could be related with the Manifest-File...
Manfiest UWP: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleUpdateApp.UWP/Package.appxmanifest
Manifest MAUI: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleNewUpdatedApp/Platforms/Windows/Package.appxmanifest

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. Reinhard Lackner 6 Reputation points
    2024-01-17T14:48:06.5533333+00:00

    It is not possible to do the update from Xamarin to MAUI in Windows with MSIX installer file. You need to convert your MSIX installer file to a msixbundle file. After that, I was able to update the app with the msixbundle file. https://learn.microsoft.com/en-us/windows/msix/packaging-tool/bundle-msix-packages

    0 comments No comments