Hi, I have a installer package containing a custom action writing a text file based on which Features are installed.
Il use the following condition in my vb script to check if a feature is installed: Session.FeatureRequestState("Feature")<>2 AND (Session.FeatureRequestState("Feature")=3 or Session.FeatureCurrentState("Feature")=3) This works fine for new install, repair, and modify. However, on a major upgrade, FeatureRequestState returns -1 and FeatureCurrentState return 2. Il know that the features are actually migrated, because the files related to each features are installed. My MajorUpgrade element is defined like this: <MajorUpgrade AllowSameVersionUpgrades="no" MigrateFeatures="yes" DowngradeErrorMessage="Installed version is newer." /> How can I check if a feature has been migrated on a major upgrade in vb script? Currently, my custom action is scheduled to run after InstallFinalize. Thank you. Eric Prévost ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users