Skip to content

How to enable auto-update with AppInstaller for MSIX Packages? #5125

Discussion options

You must be logged in to vote

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 the ShowPrompt or UpdateBlocksActivation attributes needed for the desired auto-update behavior.

Solution

  1. Add the property <GenerateAppInstallerFile>True</GenerateAppInstallerFile> to the wapProj to generate the .appInstaller file.
  2. Manually update the .appInstaller file to use the schema http://schemas.microsoft.com/appx/appinstaller/2021.
  3. Set the ShowPrompt attribute to true and UpdateBlocksActivation to true in the OnLaunch element, like so:
    <OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" Updat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LegendaryBlair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant