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

Namespace hhttp://schemas.microsoft.com/appx/appinstaller/2018