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
- :
- Re: Run a custom action on Uninstall or uninstall a service during Uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Anonymous
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2010
04:21 PM
Run a custom action on Uninstall or uninstall a service during Uninstall
I need to uninstall a Windows service during uninstall. Is there a way to do this?
If not, I need to run a custom action that does it. Can you run a Custom Action during the Uninstall??
Btw, this is for MSI. There are no scripts.
Thanks
If not, I need to run a custom action that does it. Can you run a Custom Action during the Uninstall??
Btw, this is for MSI. There are no scripts.
Thanks
(3) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2010
08:51 PM
First, add a script function to uninstall service by ServiceRemoveService in scripts.
Second, add a Custom Action to call your function by the Custom Action Wizard.
Finally, insert your Custom Action to Sequences -> Installation -> Execute, then set the condition.
Hope this helps you.
Second, add a Custom Action to call your function by the Custom Action Wizard.
Finally, insert your Custom Action to Sequences -> Installation -> Execute, then set the condition.
Hope this helps you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2010
02:26 AM
Or call sc.exe in System32 with Parameter delete "Service Name"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2010
08:16 AM
If you are installing the service Add a service in the component there add an event and configure the event as uninstall stop and Uninstall delete "Yes" Rest of the thinsgs as "No"