desktop7: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

<Package>

    <Applications>

         <Application>

              <Extensions>

                   <desktop7:Extension>

                        <desktop7:Service>

Syntax

<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>

Key

{}   specific range of occurrences

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 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 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
desktop7: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/7
Minimum OS Version Windows 10 (Build 19645)