Groups | Blog | Home
all groups > vb.net > january 2005 >

vb.net : Removing a windows service from the SCM...


Ray Cassick (Home)
1/29/2005 6:19:53 PM
When you uninstall are you leaving the services window open? I have seen
this cause issues because it locks the keys in the registry that control
what is listed and will not allow the entries to be removed.


[quoted text, click to view]

Ray Cassick (Home)
1/29/2005 6:22:17 PM
You should be able to locate the key that you need to remove by looking in
the registry under:

HKLM\CurrentControlSet\Services

Then just delete the key... But the uninstaller should really take care of
that for you...


[quoted text, click to view]


news.microsoft.com
1/29/2005 10:46:31 PM
Hi,

I have finally got my windows service installing OK using the vs.net
installer- however, when I uninstall the application it leaves an orphned
service entry in the service control manager list. If I try and run the
'MyService' it says the system cannot find the specified file. If I try to
reinstall the service I get the error message that the service already
exists.

So, 2 questions really:

- How can I remove the dodgy entry manually?

- How can I get the windows installer to uninstall the service fully if
uninstalled via the Add/Remove programs interface?

Many thanks in advance,

Stu

Stu
1/29/2005 10:54:13 PM
Oops. New machine - Just fixed my account name :-)


[quoted text, click to view]

Stu
1/30/2005 4:38:50 PM
That got it - it also required a reboot after the registry entry was
removed.

Many thanks.

Stu

[quoted text, click to view]

AddThis Social Bookmark Button