This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to stop and uninstall services during uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 21, 2012
04:54 AM
How to stop and uninstall services during uninstall
Hi !
I want to stop and delete my service during my program uninstall.
In Organization > Component, I've add 2 events.
One event with Install Start & Install Stop = Yes. (others = No)
One event with Uninstall Stop & Uninstall Delete = Yes (Others = No)
My service is starting during the install, but during the uninstall, it's not stopping and not uninstalling.
I don't know why.
How to uninstall my service ?
I want to stop and delete my service during my program uninstall.
In Organization > Component, I've add 2 events.
One event with Install Start & Install Stop = Yes. (others = No)
One event with Uninstall Stop & Uninstall Delete = Yes (Others = No)
My service is starting during the install, but during the uninstall, it's not stopping and not uninstalling.
I don't know why.
How to uninstall my service ?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 21, 2012
05:40 AM
"Uninstall" refers to uninstall of the component not uninstall of the product. For example, the service could belong to a component that belongs to a feature. During a maintenance operation you could select the feature for removal which would remove the component and service even though you aren't removing the product.
Now, the devil in that is there are scenarios where MSI doesn't remove a component therefore the service wouldn't be stopped or deleted. Examples include components marked as Permenant or scenarios where you've violated the component rules and or reference counting of the component.
You have to log the install and examine the entries that indicate the requests / actions being performed on the component to know if that is the problem.
Now, the devil in that is there are scenarios where MSI doesn't remove a component therefore the service wouldn't be stopped or deleted. Examples include components marked as Permenant or scenarios where you've violated the component rules and or reference counting of the component.
You have to log the install and examine the entries that indicate the requests / actions being performed on the component to know if that is the problem.