This should be how a major upgrade works, especially if you position the removal logic in the right place. I have this in my wxs: <Upgrade Id="9E9EAAF1-4AF9-46D4-89AA-AD26AE05208A"> <UpgradeVersion OnlyDetect="no" Property="PREVIOUSVERSIONFOUND" IncludeMinimum="yes" Minimum="1.0.0.0" IncludeMaximum="yes" Maximum="6.1.0.0" /> </Upgrade>
<InstallExecuteSequence> <RemoveExistingProducts After="InstallValidate">PREVIOUSVERSIONFOUND</RemoveExistingProducts> </InstallExecuteSequence> This removes previous versions completely before installing. You could put RemoveExistingProducts later on, but this means that only changed components will be replaced. I wanted to replace everything, so this was the solution I came up with. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of YungWei Chen Sent: Sunday, April 08, 2007 8:37 PM To: wix-users@lists.sourceforge.net; MySelf Subject: [WiX-users] Uninstall the old version and then install the newerone. Hi, I don't want users to manually uninstall the older version of the app in Add/Remove Programs of Control Panel before they install a newer one. I'd like to create such an msi file that prompts users to uninstall the older version of the application and then install the newer. Please point me to the right direction, thanks. ________________________________ Food fight? <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s id=396545367> Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s id=396545367> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users