After upgrading an Xamarin UWP app to Maui the new update refuses to install

167 views Asked by At

This is pretty much exactly what is occurring for me: https://learn.microsoft.com/en-us/answers/questions/1000760/migrate-uwp-app-to-maui-windows-error-after-update?comment=question#newest-question-comment

I went to upgrade my Xamarin project to Maui and I'm unable to update my applicate using the msix file. I will work perfectly fine if I uninstall the previous version and install.

Error message on updating: App installation failed with error message: Deployment Add operation with target volume C: on Package

There is no further messages in the event viewer.

I've made sure the assembly identity name in the app.manifest is the same as the assembly title in the assemblyInfo.cs.

The identity name, publisher, & phone product id is all the same in the package.appxmanifest.

Is there something else I need to make sure matches in order for the update to occur successfully?

2

There are 2 answers

0
Jeaninez - MSFT On BEST ANSWER

I suggest you could refer to the Doc:Troubleshooting packaging, deployment, and query of Windows apps

The package failed update, dependency, or conflict validation. Possible causes:

The incoming package conflicts with an installed package.

A specified package dependency can't be found.

The package doesn't support the correct processor architecture.

For more informtion, check the AppXDeployment-Server event log.

The UWP app and the WinUI3 app are different. So, there may be a conflict between packages. In my opinion, you could only uninstall the previous version and then install new version.

0
Rethish Annadurai EXT On

The earlier app was in ".appxbundle" format which was build in Xamarin will contain both x64 and x86 architectures. As Xamarin supported creating both x86 & x64 in a release, now MAUI will support either x86 or x64 in a release, and it is in ".msix" format.

Now, we have to create separate x64 and x86 msix builds and combine them into a single bundle that will be in ".msixbundle" format, we will be able to upgrade the existing app to the Maui app.