WindowsService Properties

MSBuild Extension Pack

WindowsService Properties MSBuild Extension Pack Help 4.0.12.0

The WindowsService type exposes the following members.

Properties

  Name Description
Public property CommandLineArguments
Sets the command line arguments to be passed to the service.
Public property Description
Sets the service description
Public property Exists
Gets whether the service exists
Public property Force
Sets a value indicating whether to delete a service if it already exists when calling Install
Public property Password
Sets user password
Public property RemoteUser
Sets the user to impersonate on remote server.
Public property RemoteUserPassword
Sets the password for the user to impersonate on remote server.
Public property RetryAttempts
Sets the number of times to attempt Starting / Stopping a service. Default is 60.
Public property ServiceDependencies
Sets the services upon which the installed service depends.
Public property ServiceDisplayName
The Display Name of the service. Defaults to ServiceName.
Public property ServiceName
The Name of the service. Note, this is the 'Service Name' as displayed in services.msc, NOT the 'Display Name'
Public property ServicePath
Sets the path of the service executable
Public property Services
Sets the collection of Services to target in parallel. See TaskAction parameters for which TaskActions support this.
Public property StartupType
Sets the Startup Type of the service.
Public property User
Sets the user.
Top
See Also

Reference