How to remove a windows service?

  • Thread starter Jacobus Terhorst
  • Start date
J

Jacobus Terhorst

I created a simple windows service. However when I built it again a couple
of days later I could no longer install the service. The InstallUtil.exe
cannot UNINSTALL the service because "The specified service does not exist
as an installed service"

However InstallUtil.exe cannot INSTALL the service because "The specified
service already exists."

Are there some registry entries I have to remove?

Any help appreciated.

Jacobus Terhorst
 
J

James Swindell

Try going to a command window and type: "{your service name} /uninstall".
Make sure your service is not running!

James
 
J

Jacobus Terhorst

I get a "Cannot start server from the command line error..."

Jacobus Terhorst
 
J

Jacobus Terhorst

InstallUtil.exe /u <servicename>.exe gives the following error:

Cannot UNINSTALL the service because "The specified service does not exist
as an installed service"

InstallUtil.exe <servicename>.exe gives the following error:
Cannot INSTALL the service because "The specified service already exists."

Jacobus Terhorst
 
W

Willy Denoyette [MVP]

Jacobus Terhorst said:
InstallUtil.exe /u <servicename>.exe gives the following error:

Cannot UNINSTALL the service because "The specified service does not exist
as an installed service"

InstallUtil.exe <servicename>.exe gives the following error:
Cannot INSTALL the service because "The specified service already exists."

Jacobus Terhorst


What's the result of running - sc query - from the command line?
If your service appears in the list, you could try to remove it using sc
delete.
If it doesn't appear, you will have to remove it from the registry using
regedit.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top