Removing a windows service from the SCM...

N

news.microsoft.com

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
 
R

Ray Cassick \(Home\)

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.
 
R

Ray Cassick \(Home\)

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...
 
S

Stu

That got it - it also required a reboot after the registry entry was
removed.

Many thanks.

Stu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top