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