How to remove a windows service?

  • Thread starter Thread starter Jacobus Terhorst
  • Start date 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
 
Try going to a command window and type: "{your service name} /uninstall".
Make sure your service is not running!

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

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
 
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.
 
Back
Top