Dejulia489 / WindowsServiceManager

https://marketplace.visualstudio.com/items?itemName=MDSolutions.WindowsServiceManagerWindowsServiceManager
MIT License
11 stars 9 forks source link

Installation path error #27

Closed Benajax closed 4 years ago

Benajax commented 4 years ago

Hi,

I am trying to use the extension on Azure DevOps (with the deployment group option) to deploy a TopShelf windows service but I am getting the an installation Path error and I am not sure what the path should be. Screenshot is attached. WSM

Dejulia489 commented 4 years ago

Error: 'The installation path should end with a .exe' What path did you use?

Benajax commented 4 years ago

The installation path is: $(System.DefaultWorkingDirectory)/_WebPlatform-CI/drop/Demo.Service/bin/Release/Demo.Service.exe

and has same setting as the Artifact Path.

Dejulia489 commented 4 years ago

The install path is where the service should be installed. C:\Services\Demo.Service.exe

Dejulia489 commented 4 years ago

if the Demo.Service is already installed on the server you may need to uninstall it first.

Benajax commented 4 years ago

Thanks Dejulia489. The services files are being copied to the server but the installation is throwing some errors because of the command line arguments. What goes into the Install Arguments field? Any examples?

.

Dejulia489 commented 4 years ago

You can leave it empty

Dejulia489 commented 4 years ago

Uncheck the TopShelf box if the service is not a topshelf service

Benajax commented 4 years ago

Service is a topshelf service. Installation is failing on arguments that's why I am wondering how to format the arguments in the Install Arguments field. Screenshot attached.

Capture

Benajax commented 4 years ago

Hi Dejulia489 I think I have figured it out. The Service Name doesn't have to have spaces. Everything is installing ok now. I will drop something in the box. Thankls for your help.

Dejulia489 commented 4 years ago

Glad this worked out, closing the ticket.