serverpreview:ServiceDependencies

Specifies the set of additional services on which the service that corresponds to the parent serverpreview:NTService element depends.

Element hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<serverpreview:Extension>
<serverpreview:NTServices>
<serverpreview:NTService>
<serverpreview:ServiceDependencies>

Syntax

<serverpreview:ServiceDependencies>
  <!-- Child elements -->
  serverpreview:ServiceDependency{1,100}
</serverpreview:ServiceDependencies>

Key

          {} specific range of occurrences

Attributes and Elements

Attributes

None.

Child Elements

Child Element Description
serverpreview:ServiceDependency Specifies an additional service on which the service that corresponds to the grandparent serverpreview:NTService element depends.

 

Parent Elements

Parent Element Description
serverpreview:NTService Identifies an NT Service to install, update, or uninstall out-of-band on Nano Server.

 

Remarks

Service dependencies must be other services in the package.

Examples

<Package ...
         xmlns:serverpreview=http://schemas.microsoft.com/appx/manifest/serverpreview/windows10"  
         IgnorableNamespaces="... serverpreview">
    <Applications>
       <Application Id="TestService">
            <uap:VisualElements AppListEntry="none" 
                                DisplayName="TestService" 
                                Square150x150Logo="logo.png" 
                                Square44x44Logo="logo.png" 
                                Description="TestService" 
                                BackgroundColor="#777777"/>
            <Extensions>
                <serverpreview:Extension Category="windows.ntServices">  
                    <serverpreview:NTServices>  
                        <serverpreview:NTService  
                                Name="depServiceName"  
                                Executable="depServiceExec.exe"                  
                                StartupType="auto"  
                                StartAccount="networkService"  
                                DisplayName="depServiceName" >  
                        </serverpreview:NTService>             
                        <serverpreview:NTService          
                                Name="serviceName"                     
                                Executable="serviceExec.exe"
                                StartupType="auto"  
                                DisplayName="service Display Name"  
                                StartErrorAction="ignoreError" 
                                StartAccount="localService"    
                                Description="service1 description"   
                                StartParameters="arg1 arg2"
                                FailureRecoveryAction="restartService">
                            <serverpreview:ServiceDependencies>
                                <serverpreview:ServiceDependency 
                                        Name ="depServiceName"/>  
                            </serverpreview:ServiceDependencies>   
                        </serverpreview:NTService> 
                    </serverpreview:NTServices>  
                </serverpreview:Extension>  
            </Extensions>
        </Application>
    </Applications>
</Package>

Requirements

Value
Namespace http://schemas.microsoft.com/appx/manifest/serverpreview/windows10