469,599 Members | 2,857 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

Windows service not getting uninstalled.

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.

Nov 17 '05 #1
4 1631
Hi,

Did you tried to refresh the service list?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<tr**************@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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.

Nov 17 '05 #2
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.

Nov 17 '05 #3
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<tr**************@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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.

Nov 17 '05 #4
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\Servi ces).

Good luck

Nov 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.