I added stop and delete of service to my pre-uninstall actions. When uninstall is executed I get error messages: failed to stop ... service and failed to delete ... service. Is it possible to debug it somehow? I see that the service exists and it is running, I'm the only user that performed the installation so I'm the files and also defined as admin. What can be the problem?
asked 07 Jun '12, 05:28
You can use Event Viewer tool to check details of the error. If there is a note about error to stop the service anywhere in the logs?
Can you stop the service manually going to services panel? (
The error may be that service itself refused to stop.
If the service does not stop, InstallBuilder is unable to delete it since it is still running.
answered 07 Jun '12, 05:37
Ran into the same problem, where some services were active and/or undergoing development and didn't properly respond to the stop command. There really isn't anything that you can do about it from the uninstaller perspective, as wojciechka indicated.
So, I created a custom function to uninstall a service. The function handles the varying service actions to stop and remove per platform, and, most importantly, exits the uninstaller if any service fails to stop. The following is just the stop action:
Then, the preUninstallationActionList just calls
for each service in your distribution.
answered 08 Jun '12, 05:12