If you use recent builds of 3.5, you can use just one element: <MajorUpgrade>. Read the docs for this element for the Schedule attribute.
If you use 3.0 you have to use two elements (that the above element sets up for you): 1. <Upgrade> and it's principle child <UpgradeVersion>. 2. <RemoveExistingProducts> placed under <InstallExecuteSequence>. The key is in the sequencing (set using the @Before or @After attributes). See the MSDN documentation (+ search blogs, etc. for more details) for the RemoveExistingProducts action for details of allowed places and the results of each of those places. -Blair -----Original Message----- From: Lucius Fleuchaus [mailto:[email protected]] Sent: Wednesday, August 04, 2010 1:52 PM To: [email protected] Subject: [WiX-users] How author wix file to uninstall previous MSI version? Hello, I like to author an MSI in such a way that it first uninstalls any previous version using the same upgrade code. What is the key element of a wix file that enables this scenario? Thank you! ---------------------------------------------------------------------------- -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

