PDA

View Full Version : How do I uninstall a 2nd MSI that I installed using custom action from a parent?



rossduncan
09-02-2005, 03:09 AM
I have added custom action to lanuch a second msi from a parent MSI.
This works.
When I uninstall the parent MSI I expected the child MSI to also uninstall - it did not.
I guess I need another custom action with /X on MSIEXEC to cause the uninstall.

I don't know where to insert this into the sequence or how to set a condition on the action. :confused:

Daniel K
09-02-2005, 07:46 AM
I'd say between install initialize/install fininalize with a condition of REMOVE="ALL"...

David Wang
09-02-2005, 03:17 PM
I have added custom action to lanuch a second msi from a parent MSI.
This works.
When I uninstall the parent MSI I expected the child MSI to also uninstall - it did not.
I guess I need another custom action with /X on MSIEXEC to cause the uninstall.

I don't know where to insert this into the sequence or how to set a condition on the action. :confused:

If the child MSI is an embedded installer, you can uninstall it with custom action type 103 (Launch another .msi package), giving the child MSI product ID as source and "ALLUSERS=[ALLUSERS] REMOVE=ALL" as Target parameter