AutomaticBackgroundTask

An optional element of the appinstaller file that checks for updates in the background. A check is made every 8 hours independently of whether the user launched the app. This type of update cannot show UI. Available in Windows 10, version 1803 and later.

Element hierarchy

<AppInstaller>
<UpdateSettings>
<AutomaticBackgroundTask>

Syntax

<AutomaticBackgroundTask/>

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

AutomaticBackgroundTask is an optional element.

Examples

In this example, deployment will check for updates in the background, every 8 hours, even if the user doesn't launch the app.

<UpdateSettings>
    <AutomaticBackgroundTask/>
</UpdateSettings>

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/2017/2