appinstaller update settings causing error

Copper Contributor

Hello. 
I have my MSIX installing via the appinstaller and have it updating on program launch when the appinstaller is pointing to newer version. 
However, the upgrade happens in the background without the users knowledge and lets them continue with the current version of the program while the update is happening. 
When there is an update available, I would like the update progress to show and everything to stop until the update is complete.  
I found some settings for the appinstaller to help me achieve this in the UpdateSettings tag as below

<UpdateSettings>
<OnLaunch
HoursBetweenUpdateChecks="0"
UpdateBlocksActivation="true"
ShowPrompt="true" />
<AutomaticBackgroundTask />
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>

 

 

However, when I add anything in the UpdateSettings tag other than the "HoursBetweenUpdateChecks" I get an error "Error in parsing the app package" when trying to install.  I am running Windows 22H2 so don't understand why these new tag/parameters are not working.

Any help would be greatly appreciated

 

Thanks

 

 

2 Replies
Perfect. Thanks. This sorted it :)