serverpreview:NTServices

Declares an app extensibility point of type windows.ntServices. This element identifies one or more NT Services to install, update, or uninstall on Nano Server.

Element hierarchy

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

Syntax

<serverpreview:NTServices>
  <!-- Child elements -->
  serverpreview:NTService{1,100}
</serverpreview:NTServices>

Key

          {} specific range of occurrences

Attributes and Elements

Attributes

None.

Child Elements

Child Element Description
serverpreview:NTService Identifies an NT Service to install, update, or uninstall on Nano Server.

 

Parent Elements

Parent Element Description
serverpreview:Extension Declares an extensibility point for the app.

 

Examples

12345678901234567890123456789012345678901234567890123456789012345678901234567890
<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="serviceName"                     
                                Executable="serviceExec.exe"
                                StartupType="auto"  
                                DisplayName="service Display Name"  
                                StartErrorAction="ignoreError" 
                                StartAccount="localService"    
                                Description="service1 description"   
                                StartParameters="arg1 arg2"
                                FailureRecoveryAction="restartService"> 
                        </serverpreview:NTService> 
                    </serverpreview:NTServices>  
                </serverpreview:Extension>  
            </Extensions>
        </Application>
    </Applications>
</Package>

Requirements

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