ForceUpdateFromAnyVersion
An optional element of the appinstaller file. This element contains a boolean value that allows the app's version to be incremented or decremented. Without this element, the app can only move to a higher version. Available starting in Windows 10, version 1809 and later.
Element hierarchy
- <AppInstaller>
-
- <UpdateSettings>
- <ForceUpdateFromAnyVersion>
Syntax
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
Attributes and Elements
Attributes
None.
Child Elements
None.
Parent Elements
Parent Elements | Description |
---|---|
UpdateSettings | Signifies whether or not to check for an update during the app's launch. |
Remarks
ForceUpdateFromAnyVersion is an optional element.
Examples
In this example, deployment will check for updates at launch time and in the background. In addition, the app version can be incremented or decremented.
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="12"/>
<AutomaticBackgroundTask/>
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
Requirements
Value | |
---|---|
Namespace | http://schemas.microsoft.com/appx/appinstaller/2018 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for