How to delete a service upon uninstall?

Article:HOWTO6496  |  Created: 2005-10-19  |  Updated: 2009-06-16  |  Article URL
Article Type
How To

How do I delete a service on the uninstall of my .MSI application?

To delete a service upon uninstall add two service controls that first stops the service and one that deletes the service on the Services page in Installation Expert.

Note: To both stop and delete a service, do not mark both the Stop Service and Delete Service checkboxes in the same control service action; instead, create two control service actions. On the first control service action, mark Stop Service and Wait for service action to complete before continuing. On the second control service action, mark Delete Service. This ensures that the service is completely stopped before the installation attempts to remove it.

Legacy ID


Article URL

Terms of use for this information are found in Legal Notices