2 ways to achieve it off the top of my head. 1 - Easy way, use the Major Upgrade functionality. See the How To at http://wix.sourceforge.net/manual-wix3/major_upgrade.htm (also in the WiX.chm). This requires the original MSI created in WISE to have an UpgradeCode set in it. Having never used WISE I can't say if it adds them by default but a simple way to check would be to open the MSI in your favourite MSI viewer/editor (Orca, InstEd etc) & see if an UpgradeCode Property has been authored. If it has you can follow the How To & use the UpgradeCode from that MSI in an Upgrade Element. Note you don't need to set the same UpgradeCode in your own MSI, you just need it for the Upgrade Element as you can have multiple Upgrade Elements defined so you could have a completely different one for your new MSI to handle the upgrade functionality in a different way to the old.
2 - Difficult way, do everything manually. If you can't do the first solution then you're going to have to write the code to manually remove everything your old installer did. The easier way to do this would be run it through Dark.exe (http://wix.sourceforge.net/manual-wix3/dark.htm) which should decompile your old MSI & write out the XML for you. You should then be able to use that XML as the base to write your own clean up Components e.g. every File element in the original MSI needs a RemoveFile element in your new one, every RegistryKey & RegistryValue needs the appropriate RemoveRegistry element authored & you would need to set the 'On' attribute to "install" for all of those. I wouldn't recommend trying to do this without being ready to put in a lot of time testing it works properly (get yourself some virtual machines, some tools to diff the systems before installing anything & then after installing both MSIs etc & a good book to read while your tools run). Actually I wouldn't recommend doing it this way at all but if needs must... I'm not sure if there's any way to use the Major Upgrade functionality of Windows Installer if you don't have an UpgradeCode set in the old MSI. One way I could think of would be to create a tiny patch for that MSI which simply adds an UpgradeCode & then sequence applying of the patch before installing your new MSI using a bootstrapper but there may be more elegant solutions from others on the list. Good luck. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: spsingam [mailto:siva.poobalasin...@gmail.com] Sent: 09 November 2009 03:27 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How do to remove shortcuts from older installs hi All, Problem: I have installed some files, registry keys, directories and shortcuts from my CoffeeShop.msi, this was developed using Wise for Windows Installer. Then i found WIX, and developed and new product and a new MSI. The new msi is called CoffeeCo.msi. Now, when i execute my CoffeeCo.msi, i want it to remove all traces of CoffeeShop from the machine. 1. How do i remove the shortcuts that appear on the Start Menu, Desktop and program files ? 2. How do i find what registry keys i have to remove? (WISE) Anyone with some good examples ? Thanks. -- View this message in context: http://n2.nabble.com/How-do-to-remove-shortcuts-from-older-installs-tp39 71017p3971017.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users