Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a desktop process that runs during app startup.
Element hierarchy
<Package>
└─ <Applications>
└─ <Application>
└─ <Extensions>
└─ <desktop:Extension>
└─ <desktop:StartupTask>
Syntax
<desktop:StartupTask
TaskId = 'A required string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
Enabled = 'An optional boolean value.'
DisplayName = 'An optional string between 1 and 256 characters in length. This string is localizable.'
rescap5:ImmediateRegistration = 'An optional boolean value.' />
Attributes
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| TaskId | A unique identifier for the task. | A string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end. | Yes | |
| Enabled | Indicates whether or not the task is enabled. A packaged desktop app can set this value to true to enable the startup behavior when the app is first launched, without requiring a call to RequestEnableAsync. | An optional boolean value. | No | |
| DisplayName | A user-friendly name to display to users. | An optional string between 1 and 256 characters in length. This string is localizable. | No | |
| rescap5:ImmediateRegistration | Indicates whether the task should be registered immediately on installation. When set to true, and Enabled is also set to true, the startup task is enabled on installation, without requiring the app to be launched first. Requires the Microsoft.nonUserConfigurableStartupTasks_8wekyb3d8bbwe custom capability. | An optional boolean value. | No |
Child elements
None.
Parent elements
| Parent element | Description |
|---|---|
| desktop:Extension | Declares an extensibility point for the app. |
Requirements
| Item | Value |
|---|---|
| Namespace | http://schemas.microsoft.com/appx/manifest/desktop/windows10 |
| rescap5 | http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/5 |
| Minimum OS Version | Windows 10 version 1607 (Build 14393) |