Perfect.  I had a feeling I was trying to make something simple into something 
complicated J

Jason

From: Mike Dimmick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 29, 2007 3:30 PM
To: Jason Shay; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Conditional Feature installation

The MigrateFeatureStates action is supposed to do that for you. Set 
UpgradeVersion/@MigrateFeatureStatus to 'yes' on the versions you want the 
migration to happen for.

--
Mike Dimmick

________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Shay
Sent: 29 June 2007 23:16
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditional Feature installation

I'm making a WIX install with 2 features:
                FEATURE_A (installs by default)
                FEATURE_B (does not install by default)

My "upgrade" scenario is a new product and package ID for every version.  My 
desired behavior is that in any upgrade scenario, the default feature set stays 
consistent with what is already installed, and not to snap back to the "new 
user defaults".

In other words:

1)      User installs and via UI, only installs FEATURE_B (goes against both 
defaults)

2)      User gets next version, runs MSI to upgrade.  I want the installer to 
detect what is installed, and have the default selected feature set to be only 
FEATURE_B.

I was thinking of doing this by putting a condition in the feature tag to 
change the level when a feature is installed.  But documentation says that 
won't work because the enumeration of which features are installed happens too 
late in the process.   Any suggestions?

I'm on WIX v2, BTW.

Jason
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to