R
Ricky K. Rasmussen
Hi NG,
I'm writing a management tool for our software, that among other should be
able to install and uninstall some of our NT services.
The problem is that when I uninstall the services (using
ManagedInstallerClass.InstallHelper with the "/u" parameter) the services
are uninstalled, but they are still running until I close my management
application. This is a problem since I want to remove the service assemblies
as a part of the uninstallation.
I read the Knowledge Base-article 287516
(http://support.microsoft.com/default.aspx?scid=kb;en-us;287516), which
seems to be addressing my problem. It claims that all handles to the
services needs to be closed before the service can be uninstalled. Thats
fair enough, but eventhough all my ServiceControllers are Close()'d and
Dispose()'d the problem persists.
Is there a way to release all handles to a service allowing it to be
uninstalled at once?
Or is there another way to do this?
Thanks for your time,
Ricky
I'm writing a management tool for our software, that among other should be
able to install and uninstall some of our NT services.
The problem is that when I uninstall the services (using
ManagedInstallerClass.InstallHelper with the "/u" parameter) the services
are uninstalled, but they are still running until I close my management
application. This is a problem since I want to remove the service assemblies
as a part of the uninstallation.
I read the Knowledge Base-article 287516
(http://support.microsoft.com/default.aspx?scid=kb;en-us;287516), which
seems to be addressing my problem. It claims that all handles to the
services needs to be closed before the service can be uninstalled. Thats
fair enough, but eventhough all my ServiceControllers are Close()'d and
Dispose()'d the problem persists.
Is there a way to release all handles to a service allowing it to be
uninstalled at once?
Or is there another way to do this?
Thanks for your time,
Ricky