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: Custom Action To Remove Child Product
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
‎Oct 23, 2008
10:51 PM
Custom Action To Remove Child Product
In my Basic MSI project, the setup need to include some child products. I have created two custom action: one to install child product and another to uninstall child product.
Both custom actions are using installscript function which call "LaunchAppAndWait" to call msiexec with command line parameter. As Windows Installer will not allow two instance of Execute sequence to run at the same time, so these custom action is placed "After ExecuteAction" in User Interface Sequence. The difference between them are the condition.
My problem is the custom action to install child product is working fine but not with the custom action to remove child product. I tried to placed a MessageBox in the installscript function, but it never been called during uninstallation of my parent product. I wonder what's going wrong here as the former custom action is working fine but not the latter.
Please let me know if there's other way to remove child product.
Thanks.
Both custom actions are using installscript function which call "LaunchAppAndWait" to call msiexec with command line parameter. As Windows Installer will not allow two instance of Execute sequence to run at the same time, so these custom action is placed "After ExecuteAction" in User Interface Sequence. The difference between them are the condition.
- child product installation condition: "NOT Installed and NOT PATCH"
- child product uninstallation condition: "REMOVE="ALL" OR MaintenanceMode="Remove"
- child product uninstallation condition: "REMOVE="ALL" OR MaintenanceMode="Remove"
My problem is the custom action to install child product is working fine but not with the custom action to remove child product. I tried to placed a MessageBox in the installscript function, but it never been called during uninstallation of my parent product. I wonder what's going wrong here as the former custom action is working fine but not the latter.
Please let me know if there's other way to remove child product.
Thanks.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
10:54 PM
I read an article in kb on how to create a nested installation here. The custom action type 7 and type 23 are not suitable for my setup. But I did try with the custom action type 39 to remove the child product.
I followed the instruction "Place this action between Install Validate and Install Finalize Actions in the Execute Sequence with the condition Installed AND REMOVE="ALL"." exactly the same, but the child product still not getting uninstall.
I followed the instruction "Place this action between Install Validate and Install Finalize Actions in the Execute Sequence with the condition Installed AND REMOVE="ALL"." exactly the same, but the child product still not getting uninstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
10:38 PM
If anybody having the experience to remove another product in the setup during uninstallation, please share with me..
I do appreciate all suggestion.
I do appreciate all suggestion.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 19, 2008
08:16 AM
Hi there.
I'm trying to do the same thing. Did you ever get resolution for this? I am very interested.
Thanks
I'm trying to do the same thing. Did you ever get resolution for this? I am very interested.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 19, 2008
08:23 AM
Can you set up a major-upgrade relationship between the two packages?