desktop6:Service
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.
Element hierarchy
<desktop6:Service>
Syntax
<desktop6: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 be one of the following values: "auto", "manual", "disabled", or "delayedStart".'
StartAccount = 'A string that can be one of the following values: "localSystem", "localService", 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?
desktop6:TriggerEvents?
</desktop6:Service>
Key
?
optional (zero or one)
Attributes and elements
Attributes
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 be 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 be one 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 elements
Child element | Description |
---|---|
desktop6:Dependencies | Specifies one or more dependent services. |
desktop6:TriggerEvents | Specifies one or more trigger event for the service. |
Parent elements
Parent element | Description |
---|---|
Extension | Defines an extensibility point for the application. |
Remarks
This element requires the packagedServices or localSystemServices restricted capability.
Requirements
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/desktop/windows10/6 |
Minimum OS Version | Windows 10 version 1903 (Build 18362) |