Click here to Skip to main content
16,021,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
while installing window service i get this error
"service already exists"
but when i uninstall it,then again it gave error.
kindly help
Posted
Comments
koool.kabeer 26-Jul-10 7:45am    
try by changing the location of installing service .exe file
Ankur\m/ 26-Jul-10 8:23am    
I got this error some years back and I remember I solved it. I think I logged the resolution steps somewhere. Give me some, i will search if I still have the solution.
Ankur\m/ 26-Jul-10 9:15am    
Did you try the solution. Does it solve your problem?

1 solution

Run this script (Given by Phil Wilson).

VB
Set servicelist= GetObject("winmgmts:").InstancesOf ("Win32_Service")
for each service in servicelist
    sname=lcase(service.name)
    If left(sname, 11) = "someservice" Then service.delete ' the internal name of your service. replace 11 by length of your service name
end if


This will solve your issue.

I will update my answer with references and more details.

[Update]
Search Google for "Service already exists, Phil Wilson" and you would get more details.
[/Update]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900