How to enable auto-update with AppInstaller for MSIX Packages? #5125
Answered
by
LegendaryBlair
Boliang Zhang (LegendaryBlair)
asked this question in
Q&A
DescriptionWhen publishing a MSIX package for a WinAppSDK app, the auto-update feature does not work as expected. Despite setting the update frequency to 'Every time the application runs' in Visual Studio, the app does not check for updates automatically and requires manual intervention. Related issues |
Answered by
LegendaryBlair
Feb 8, 2025
Replies: 1 comment
Root causeThe issue is caused by the default appInstaller schema version generated by Visual Studio, i.e., Solution
References: App Installer File Versioning |
0 replies
Answer selected by
LegendaryBlair
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Root cause
The issue is caused by the default appInstaller schema version generated by Visual Studio, i.e.,
http://schemas.microsoft.com/appx/appinstaller/2017/2, which does not support theShowPromptorUpdateBlocksActivationattributes needed for the desired auto-update behavior.Solution
True to the wapProj to generate the .appInstaller file.http://schemas.microsoft.com/appx/appinstaller/2021.ShowPromptattribute to true andUpdateBlocksActivationto true in theOnLaunchelement, like so: