R
russ.haley
I have created a small windows service in C# that installs using the
service installer classes and a deployment project. I have been able to
install the service but the uninstallation does not work. The files are
deleted from the application directory but the service is not being
unregistered.
The instructions I found did not indicate any code changes were
necessary, but I have found reference on Google to changing the
CanShutdown property in the service class but the results were the
same. The Installer completes the un-install process, but the service
still exists in the services list and the registry. The service is NOT
running during the unistallation.
Does anyone know what I have missed? There was reference in one posting
to properties called uninstall delete and uninstall shutdown, but I
have not found any other reference to these properties.
I have also seen refrences to using Installutil.exe from the framework
instead of using the service installer class.
Any help on this issue would be grand as I'm somewhat new to installers
and windows services.
Thanks in advance
Russ
service installer classes and a deployment project. I have been able to
install the service but the uninstallation does not work. The files are
deleted from the application directory but the service is not being
unregistered.
The instructions I found did not indicate any code changes were
necessary, but I have found reference on Google to changing the
CanShutdown property in the service class but the results were the
same. The Installer completes the un-install process, but the service
still exists in the services list and the registry. The service is NOT
running during the unistallation.
Does anyone know what I have missed? There was reference in one posting
to properties called uninstall delete and uninstall shutdown, but I
have not found any other reference to these properties.
I have also seen refrences to using Installutil.exe from the framework
instead of using the service installer class.
Any help on this issue would be grand as I'm somewhat new to installers
and windows services.
Thanks in advance
Russ