开发者

Installing service using SC/ service control

开发者 https://www.devze.com 2023-03-11 01:04 出处:网络
I had a windows service installed on my computer. I deleted it with sc delete myservice Then I recreated it with

I had a windows service installed on my computer. I deleted it with

sc delete myservice

Then I recreated it with

sc create collector binpath = "path of service"

but service is not listed under services in control panel.

I tried to recreate the service and got:

[SC] CreateService FAILED 1073:

The specified service already exists.

I am trying to delete the service and getting:

[SC] OpenService FAILED 1060:
开发者_StackOverflow中文版

The specified service does not exist as an installed service.

What is causing the problem and how do I solve it?


Try using installutil instead, this fixed similar problem for me.


I've had issues like that installing/uninstalling services before and often I found that I had the Services MMC open while trying command line operations. Closing it out and attempting the install/uninstall again has worked for me in the past. Not sure if that will aid you but it's something that's helped me many times.

0

精彩评论

暂无评论...
验证码 换一张
取 消