Uninstall Service that has been removed causes uninstall to end abnormally
Posted on 2007-11-29
Is there any way I can tell the deployment project to ignore the fact that my service is not there during uninstall?
I have a deployment project that installs/uninstalls a service along with other stuff. It does this via Custom Actions entries in the setup project and the ProjectInstaller class in the service project. Somehow the service is gone (how is not the issue here). When I uninstall the product via the Add/Remove Programs option, I get the message :
An Exception occured while uninstalling ... The specified service does not exist as an installed service.
When I answer the message, the uninstall rolls back. Thus I cannot uninstall my product. Removing it manually is a big pain.