Hello,
I would like to use a custom action to read a license file and base the installed features on its contents. I have a custom action written in C# that successfully inserts a new entry into the Property table: using (View propertyView = session.Database.OpenView("SELECT * FROM Property")) { Record propertyRec = new Record(2); propertyRec[1] = "PRODUCT_VER"; propertyRec[2] = "XYZ_VER"; propertyView.Modify(ViewModifyMode.InsertTemporary, propertyRec); } In my Product.wxs file I have this to specify the custom action and when it is executed: <CustomAction Id="CASetProductVer" BinaryKey="SupportCAs" DllEntry="SetProductVer" Execute="immediate" /> <InstallExecuteSequence> <Custom Action="CASetProductVer" Before="InstallFiles"/> </InstallExecuteSequence> And finally, I only want to install the XYZ version of the product when Property PRODUCT_VER=XYZ_VER: <CustomAction Id="CASetProductVer" BinaryKey="SupportCAs" DllEntry="SetProductVer" Execute="immediate" /> <InstallExecuteSequence> <Custom Action="CASetProductVer" Before="InstallFiles"/> </InstallExecuteSequence> <Feature Id="XYZVer" Title="Product XYZ Ver" Level="1"> <Condition Level="0">CData<![CDATA[PRODUCT_VER<>"XYZ_VER]]> "</Condition> <ComponentRef Id="XYZ_VER_REF"/> </Feature> My thought was that by setting the value of Property PRODUCT_VER during the custom action to anything other than XYZ_VER would cause the install level of Feature XYZ to 0 and prevent its installation. I have tried various ways of expressing the inside text of the condition element but cannot prevent the installation of Feature XYZ_VER. I'd appreciate any guidance you could give on this. Best, Bill Prada ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users