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

180 Views Asked by At

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

1

There are 1 best solutions below

0
Ceeno Qi-MSFT On

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.