Universal Windows Service Class Library

ExtendedServiceInstaller Class

Extended service installer class providing more futures to set.

For a list of all members of this type, see ExtendedServiceInstaller Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Configuration.Install.Installer
            System.Configuration.Install.ComponentInstaller
               System.ServiceProcess.ServiceInstaller
                  uws.Install.ExtendedServiceInstaller

[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IRootDesigner, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="Microsoft.VisualStudio.Configuration.InstallerDesigner, Microsoft.VisualStudio, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DefaultEvent(Name="AfterInstall")]
[DesignerCategory(Category="Component")]
public sealed class ExtendedServiceInstaller : ServiceInstaller

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This class provides more installation settings than the ServiceInstaller class. For further informations see the example section.

Example

// Code for installing the process of the service
ServiceProcessInstaller process = new ServiceProcessInstaller();

process.Account = ServiceAccount.LocalSystem;
process.Username = null;
process.Password = null;

// Code for installing the service
ExtendedServiceInstaller service = new ExtendedServiceInstaller();

service.StartType = ServiceStartMode.Automatic;
service.ServiceName = "uws";
service.DisplayName = "Universal Windows Service";
service.Description = "A universal windows service for starting and watching applications.";
service.InteractiveProcess = true; // Only possible if ServiceAccount is LocalSystem
service.StartOnInstall = true; // Service will be started after installation

Installers.Add(m_process);
Installers.Add(m_service);

Requirements

Namespace: uws.Install

Assembly: uwsCore (in uwsCore.dll)

See Also

ExtendedServiceInstaller Members | uws.Install Namespace | ServiceInstaller | ServiceAccount | ServiceStartMode