Sun
Sun

Reputation: 4708

DevOps Windows Service Manager - install top shelf service where the name contains spaces

I'm using Windows Service manager within a devops release pipeline to install a top shelf service.

enter image description here

If the Service Name is "My Service" it fails

However, if I change it to "MyService" it works

enter image description here

You can install top shelf services using the command line with space and you could also do it in the old release manager.

Any idea how I can get this to work?

Thanks

Upvotes: -1

Views: 240

Answers (1)

Ceeno Qi-MSFT
Ceeno Qi-MSFT

Reputation: 1122

From the resource code of this task, Windows Service Manager.

"name": "ServiceName",

           "type": "string",

           "label": "Service name",

           "defaultValue": "",

           "required": true,

           "helpMarkDown": "The exact name of the windows service installed on the deployment group target."

I suppose you need to validate the service name installed on your target machine before you input it in the task field.

Upvotes: 0

Related Questions