Windows service not getting uninstalled.

  • Thread starter Thread starter trialproduct2004
  • Start date Start date
T

trialproduct2004

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 that service error occured and so
status of service getting displayed in scm is 'stopping'. and then i
tried to uninstall that service from add/remove program.

Service is uninstalled cmpletely but still its entrry is there in scm.
can someone tell me why this is happening.

any help will be appreciated

thanks in advance.
 
hi
ya i tried a lot to refresh service. i closed scm and reopened scm
again.
but still same problem exist.
but when i restarted my pc then that entry gets removed from scm.
but every time restarting pc for uninstalling service is not flexible.
can u tell me why this is happening.
any help will be apprecaited.
thanks in advance.
 
Hi,

The only reason I can think of is cause the error you are getting when
sttoping ti?

can you get rid of it?


cheers,
 
I don't think it is recommended to remove windows services using
add/remove programs (unless they are part of some other application).

When it comes to adding and removing services I believe you are better
off using the .NET installer classes. If you don't want to use these
you might want to look at the functions in advapi32.dll such as
CreateService and DeleteService. As Ignacio is pointing out there are
of course problems if the service does not stop correctly. Make sure it
does.

Then again, the SCM does not remove a service until the process that
called for the removal of the service goes to end. I believe this is
not a bug but by design. If you really want to remove it without
restarting your computer, try removing the service programmatically
from the windows registry
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services).

Good luck
 
Back
Top