When one specifies Override, the other one will replace (you tag the one that can be changed). You can verify which you ended up with by opening the MSI in Orca (or any other MSI table editor/viewer). If neither is overridden, the linker will fail because the action is not allowed in the table twice.
The sequence tables don't allow any action to be listed twice (violates the key-column constraint). -----Original Message----- From: Andy Clugston [mailto:clug...@gmail.com] Sent: Wednesday, October 06, 2010 10:26 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Best Practices - Using "*" for GUID automation Mike, Thanks again for the reply. I have added <RemoveExistingProducts Before="InstallInitialize"/> and it works as you stated. Actually, WiX disallows both "After" and "Before" in the same element. I understand the rollback scenario now as well. Thanks for the clarification. Going forward... since we have an infrastructure in place, we have "common" WiX pieces used by all products as well as product-specific WiX pieces. Is it safe to leave the above RemoveExistingProducts in the common, and override this at some point at the product level? I'm not sure if WiX allows this. The "override" product-specific RemoveExistingProducts element would be added after common element. Will two entries be added to the MSI database, or will the last one specified overwrite the first? Thanks, Andy On Wed, Oct 6, 2010 at 12:36 PM, MikeR <michael.ru...@gmail.com> wrote: > > Hi Andy, > > Either setting After="InstallValidate" or Before="InstallInitialize" will > work, you don't need to specify both. I was just giving you the > restrictions on sequencing for the upgrade to work. > > With this setup a rollback to v1.0.0 would not occur if your v1.0.1 MSI > fails after RemoveExistingProducts has executed, which is very early on in > the install. If that happened the customer would need to reinstall v1.0.0 > to get back to that version. > > As long as your new MSI versions need to support the v1.0.0 -> latest > upgrade path you will need to maintain the early RemoveExistingProducts > sequencing to avoid this problem. Once you no longer need to support that > direct upgrade path you can resequence RemoveExistingProducts back to after > InstallFinalize. > > -Mike > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Best-Practices -Using-for-GUID-automation-tp5234716p5607832.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------------- -- > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ---------------------------------------------------------------------------- -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users