The WindowsService type exposes the following members.
Sets the command line arguments to be passed to the service.
Sets the service description
Gets whether the service exists
Sets a value indicating whether to delete a service if it already exists when calling Install
Sets user password
Sets the user to impersonate on remote server.
Sets the password for the user to impersonate on remote server.
Sets the number of times to attempt Starting / Stopping a service. Default is 60.
Sets the services upon which the installed service depends.
The Display Name of the service. Defaults to ServiceName.
The Name of the service. Note, this is the 'Service Name' as displayed in services.msc, NOT the 'Display Name'
Sets the path of the service executable
Sets the collection of Services to target in parallel. See TaskAction parameters for which TaskActions support this.
Sets the Startup Type of the service.
Sets the user.