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>
<uap13:AppInstaller File="Update.appinstaller" />
</uap13:AutoUpdate>
</Properties>
But, Autoupdate is not working as expected, please confirm if any steps to be followed.
DhanarajG There isn't much to tell you from the post.
Given the reference shown, the referenced file would have to be placed in the top level (folder) of the package.
Presumably you also added the uap13 definition to the package element at the top of the AppXManifest file (otherwise the package would have failed in makeappx/makemsix). I'm traveling and don't remember the minimum OS version to support this feature, but check that in the documentation if you are not on 22h2 or above.
After that it depends on the contents of the appinstaller.xml file.
- DhanarajGCopper 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.
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