user1082187
user1082187

Reputation: 135

error 1001. the specified service already exists

I am writing a C# windows service and I was able to install and uninstall in Visual Studio fine, then not sure what I did in the code and messed things up. Now when I try to install, I get the error 1001:

The specified service already exists.

But when I try an uninstall, it gives me:

Another program is being installed. Please wait until that installation is complete, and then try installing this software again.  

I do see my service still listed in the Services. What should I do to resolve this issue?

Upvotes: 3

Views: 6726

Answers (1)

user1082187
user1082187

Reputation: 135

sc delete [service name] is what works for me. Be sure to open cmd as a administrator otherwise you will get access denied error.

Upvotes: 7

Related Questions