Is this a major upgrade scenario? I would hope you aren't planning on invoking 
the uninstall of the previous version from a CA.

If it is a Major Upgrade, if you were lucky enough to have this old data in its 
own feature then you could look at the RemoveFeatures attribute of the 
MajorUpgrade element. You could populate that based off of a choice in the UI 
of your new install.

-----Original Message-----
From: Alec Swan [mailto:alecs...@gmail.com] 
Sent: Tuesday, October 09, 2012 4:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Prompting the user during an upgrade

Hello,

During an upgrade we need to prompt the user whether the data from the old 
installation should be preserved and migrated to the new installation format. 
We can currently do this if the old version was installed with NullSoft as 
follows:

1. If  UninstallString exists in the registry then prompt the user if data 
should be preserved 2. Run UninstallString command from a Wix custom action and 
pass the choice made by the user as a command line switch 3. Proceed with 
MSI-based installation

Now we need to do the same when the old installation is MSI-based.

We can currently SILENTLY uninstall MSI-based product preserving data by 
passing PRESERVE_DATA=true as a command line switch. So, technically we can run 
silent MSI uninstall in step 2 above, but I am worried that this will interfere 
with uninstall that is called automatically by MSI.

What is the right way to do this with Wix?

Thanks,

Alec

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM Deploy 
New Relic app performance management and know exactly what is happening inside 
your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and 
get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to