title: desktop7:Service description: Specifies a service that is installed and registered along with the app, adding delayedStart startup type. These services can be configured to run under either the Local Service, Network Service or Local System account. ms.date: 10/15/2021 ms.topic: reference keywords: windows 10, uwp, schema, manifest, desktop, extension ms.custom: 19H1
Specifies a service that is installed and registered along with the app. These services can be configured to run under either the Local Service, Network Service or Local System account.
<desktop7:Service>
<desktop7:Service
Name = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
StartupType = 'A string that can have one of the following values: "auto", "manual", "disabled", or "delayedStart".'
StartAccount = 'A string that can have on of the followning values: "localSystem", "localServices", or "networkService".'
Arguments = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' >
desktop6:Dependencies{1,}
desktop6:TriggerEvents{1,}
</desktop7:Service>
{}
specific range of occurrences
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
Name | The name of the service. | A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end. | Yes | |
StartupType | The startup type for the service. | A string that can have one of the following values: auto, manual, disabled, or delayedStart. | Yes | |
StartAccount | The type of account in which to run the service. | A string that can have on of the following values: localSystem, localServices, or networkService. | Yes | |
Arguments | Optional arguments to pass to the service. | An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end. | No |
Child element | Description |
---|---|
desktop6:Dependencies | Specifies one or more dependent services. |
desktop6:TriggerEvents | Specifies one or more trigger event for the service. |
Parent element | Description |
---|---|
desktop7:Extension | Defines an extensibility point for the application. |
This element requires the packagedServices or localSystemServices restricted capability.
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/desktop/windows10/7 |
Minimum OS Version | Windows 10 (Build 19645) |