WindowsService PropertiesMSBuild Extension Pack Help 4.0.12.0

The WindowsService type exposes the following members.

Properties

  NameDescription
Public propertyCommandLineArguments
Sets the command line arguments to be passed to the service.
Public propertyDescription
Sets the service description
Public propertyExists
Gets whether the service exists
Public propertyForce
Sets a value indicating whether to delete a service if it already exists when calling Install
Public propertyPassword
Sets user password
Public propertyRemoteUser
Sets the user to impersonate on remote server.
Public propertyRemoteUserPassword
Sets the password for the user to impersonate on remote server.
Public propertyRetryAttempts
Sets the number of times to attempt Starting / Stopping a service. Default is 60.
Public propertyServiceDependencies
Sets the services upon which the installed service depends.
Public propertyServiceDisplayName
The Display Name of the service. Defaults to ServiceName.
Public propertyServiceName
The Name of the service. Note, this is the 'Service Name' as displayed in services.msc, NOT the 'Display Name'
Public propertyServicePath
Sets the path of the service executable
Public propertyServices
Sets the collection of Services to target in parallel. See TaskAction parameters for which TaskActions support this.
Public propertyStartupType
Sets the Startup Type of the service.
Public propertyUser
Sets the user.
Top
See Also

Reference