During an installation the RemoveExistingProducts action would handle these uninstalls for you, but (from the RemoveExistingProducts documentation)...
"The installer only runs the RemoveExistingProducts action the first time it installs a product. It does not run the action during a maintenance installation or uninstallation." ...so I think that you will have to use a different method to handle this. A concurrent (nested) uninstallation seems the obvious way, but that is listed as a deprecated feature in Windows Installer 4.5, so I can't really recommend that either. If your uninstall requires a reboot then maybe the Run registry key could be used to launch further uninstalls, but that seems a little heavy-handed, perhaps someone else has a better method. Cheers, James -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eitan Behar Sent: 03 September 2008 16:26 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Uninstalling related products you can use a custom action to launch the uninstall of these products, but, don't think that these are best practices. On Wed, Sep 3, 2008 at 6:06 PM, Jeff Yates <[EMAIL PROTECTED]> wrote: > Hi everyone, > > If you have a moment, I was wondering if there was a way to uninstall > additional products when uninstalling another product. For example... > > I install product A. > > I then install B, C, D, E (these are add-ons for A that I install via > their own MSI and upgrade codes etc - so basically, as separate products). > > I then uninstall A. > > Can I also uninstall B, C, D and E as part of A? > > I'm guessing not, but I thought I'd ask. I'm aware that you can > uninstall items upon install, but I want to do it when uninstalling. > Is there a way to maybe use the registry or a file to record the > product codes for uninstall and add something to a deferred execution > action? > > Thanks for any help you might be able to give. > > Cheers, > Jeff > ---------------------------------------------------------------------- > --- This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & > win great prizes Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This e-mail is confidential and the information contained in it may be privileged. It should not be read, copied or used by anyone other than the intended recipient. If you have received it in error, please contact the sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and delete the e-mail and do not disclose its contents to any person. We believe, but do not warrant, that this e-mail and any attachments are virus free, but you must take full responsibility for virus checking. Please refer to http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer statement and monitoring policy. Dresdner Kleinwort is the trading name of the investment banking division of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort Limited, Dresdner Kleinwort Securities Limited and their affiliated or associated companies. Dresdner Bank AG is a company incorporated in Germany with limited liability and registered in England (registered no. FC007638, place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the German Federal Financial Supervisory Authority and by the Financial Services Authority ('FSA') and regulated by the FSA for the conduct of designated business in the UK. Dresdner Kleinwort Limited is a company incorporated in England (registered no. 551334, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA. Dresdner Kleinwort Securities Limited is a company incorporated in England (registered no. 1767419, registered office 30 Gresham Street, London EC2V 7PG), and is authorised an d regulated by the FSA. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users