472,334 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,334 software developers and data experts.

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 26436
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: belgiozen | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe...
4
by: trialproduct2004 | last post by:
Hi all I have removed windows service from add/remove program, still that service is getting displayed in SCM. Problem is at a time of stopping...
4
by: news.microsoft.com | last post by:
Hi, I have finally got my windows service installing OK using the vs.net installer- however, when I uninstall the application it leaves an...
0
by: trialproduct2004 | last post by:
Hi all i have developed one windows service in c#.net. But when i try to open properties windows of that service throuch service control...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
28
by: | last post by:
I have a multi threaded windows form application that runs great after calling Application.Run(). Application.Run is required for a COM component...
1
by: Ronald S. Cook | last post by:
Sorry if not the right place for this, but I was wondering how to remove a VB.NET Windows service when the .exe is no longer on my hard drive. I...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.