469,336 Members | 5,950 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

How to remove a windows service?

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
Nov 17 '05 #1
5 26206
Try going to a command window and type: "{your service name} /uninstall".
Make sure your service is not running!

James

"Jacobus Terhorst" <ja*****@usa.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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

Nov 17 '05 #2
I get a "Cannot start server from the command line error..."

Jacobus Terhorst

"James Swindell" <ja******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Try going to a command window and type: "{your service name} /uninstall".
Make sure your service is not running!

James

"Jacobus Terhorst" <ja*****@usa.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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


Nov 17 '05 #3
Try this from the Visual Studio.NET command prompt:
installutil /u <assemblyname>.exe

msdn documentation:
http://msdn.microsoft.com/library/de...allutilexe.asp

"Jacobus Terhorst" wrote:
I get a "Cannot start server from the command line error..."

Jacobus Terhorst

"James Swindell" <ja******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Try going to a command window and type: "{your service name} /uninstall".
Make sure your service is not running!

James

"Jacobus Terhorst" <ja*****@usa.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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



Nov 17 '05 #4
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

"marko rangel" <marko ra****@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
Try this from the Visual Studio.NET command prompt:
installutil /u <assemblyname>.exe

msdn documentation:
http://msdn.microsoft.com/library/de...allutilexe.asp

"Jacobus Terhorst" wrote:
I get a "Cannot start server from the command line error..."

Jacobus Terhorst

"James Swindell" <ja******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
> Try going to a command window and type: "{your service name}
> /uninstall".
> Make sure your service is not running!
>
> James
>
> "Jacobus Terhorst" <ja*****@usa.net> wrote in message
> news:%2***************@tk2msftngp13.phx.gbl...
>>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
>>
>>
>
>


Nov 17 '05 #5

"Jacobus Terhorst" <ja*****@usa.net> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
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.
Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mark | last post: by
4 posts views Thread by trialproduct2004 | last post: by
4 posts views Thread by news.microsoft.com | last post: by
reply views Thread by trialproduct2004 | last post: by
7 posts views Thread by Sunil Varma | last post: by
1 post views Thread by Ronald S. Cook | last post: by
5 posts views Thread by dm3281 | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.