Anybody worked on install/uninstall windows service?
-
Look I have a widnows service, which gets installed and uninstalled programmatically. Now I am using advapi32.dll to install and uninstall the service. But when I uninstall the service, It doesnt remove the entry from Services. It removes it only when I close the running application which has called uninstall method. What to do? how can I remove the entry without closing my application? I working on it since loooooooooong time. but :((
Nana
-
Look I have a widnows service, which gets installed and uninstalled programmatically. Now I am using advapi32.dll to install and uninstall the service. But when I uninstall the service, It doesnt remove the entry from Services. It removes it only when I close the running application which has called uninstall method. What to do? how can I remove the entry without closing my application? I working on it since loooooooooong time. but :((
Nana
-
I have seen some issues with uninstalling windows services where if you delete the exe before you uninstall it, the service will still show up. So I would uninstall first then delete the exe. Just a guess. Hope that helps. Ben
There can also be problems if the Services control panel applet is running when the service is removed. It will sometimes "persist" until a reboot occurs.
----------------------------- In just two days, tomorrow will be yesterday.