Forum Discussion
DhanarajG
Oct 10, 2023Copper Contributor
MSIX Autoupdate feature by modifying the msix without using .appinstaller file.
We are trying to create an MSIX package with an update feature by modifying the "AppxManifest.xml" file. Here is the content we are trying to insert: <Properties> <uap13:AutoUpdate> ...
DhanarajG
Oct 11, 2023Copper Contributor
Thank you for your response. I am currently following this reference: https://learn.microsoft.com/en-us/windows/msix/app-installer/how-to-embed-an-appinstaller-file but I'm encountering difficulties in achieving the auto-update feature using an MSIX package. (If I attempt with a .appinstaller file, it works as expected.) I am using Windows 11 for this feature, as mentioned in the provided document.
My intention is to have the MSIX file for my application with the auto-update feature added under the <Properties> tag in the AppxManifest file. The desired outcome is that whenever I update the latest .msix in the shared path, the installed app should be updated automatically.
Thank you for any insights you can provide.
Oct 12, 2023
DhanarajG The normal process to use is to copy the updated MSIX file onto the share location with a different filename than the original (to ensure that you don't mess up someone trying to install the current version until you have everything ready). Then you edit the AppinstallerXML file, changing the version string and URI of the mainpackage to point to the updated MSIX file path and name. Save that file overwriting the existing file on the share.
I also want to make you aware of the following article (just in case you didn't know) Disabling the MSIX ms-appinstaller protocol handler - Microsoft Community Hub
Regards,
Tim
- DhanarajGOct 17, 2023Copper ContributorHi Tim,
Thank you for your response, the shared link is helpfull. But I am trying to achieve the automatic updates once installed the MSIX package, but in my experiments, I have to run the .appinstaller file to install the updates. Looking for whenever the application launches it should check for the updates and install it. Searching for this.
Thank you,- Oct 17, 2023The supported method for upgrading the package is one of the AppInstaller methods. From inside the running program it is not possible. The AppInstaller method can trigger upon launch, but is handled by an svchost process before the launch.
- DhanarajGOct 17, 2023Copper ContributorThank you so much, I will try it.