s4:AutomaticBackgroundTask

Description

An optional element of the App Installer file, the presence of which indicates that the system should check for updates in the background. (s4:AutomaticBackgroundTask)

The 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

s4:AppInstaller

     s4:UpdateSettings

          <s4:AutomaticBackgroundTask>

Syntax

<s4:AutomaticBackgroundTask></s4:AutomaticBackgroundTask>

Parent Elements

Parent Elements Description
s4:UpdateSettings Specifies settings related to app updates.

Examples

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

<s4:UpdateSettings>
    <s4:AutomaticBackgroundTask/>
</s4: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.

<s4:UpdateSettings>
    <s4:OnLaunch HoursBetweenUpdateChecks="12"/>
    <s4:AutomaticBackgroundTask/>
    <s4:ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</s4:UpdateSettings>

Requirements

Requirement Value
xmlns:s4=http://schemas.microsoft.com/appx/appinstaller/2021 This namespace is required for features introduced in Windows version 21H2 build 22000
Minimum OS version Windows version 21H2 build 22000