Hello Again, Bob: I tried what is suggested in your blog but I am at the exact situation which Peter faced mentioned in #9 on your blog.
So Bob as you mentioned there: "It's not possible to change how the selection tree control works, just modify what's shown."..... How can I HIDE the feature from selection tree. Sam: I don't want user to modify to be able to modify the features once I validate and set features they are entitled too. Regards Rohit Message: 1 Date: Wed, 24 Mar 2010 13:02:59 -0500 From: Sam Domonkos <s...@pfgltd.com> Subject: Re: [WiX-users] Feature Tree modification based on property. To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Message-ID: <4baa53d3.2090...@pfgltd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I am still new to WiX, but maybe set each feature's level to 0 then changing them to 1 with your custom action. Then when the user gets to the customize dialogue they should be able to enable disable the feature. --Sam Date: Wed, 24 Mar 2010 16:09:03 -0400 From: Bob Arnson <b...@joyofsetup.com> Subject: Re: [WiX-users] Feature Tree modification based on property. To: wix-users@lists.sourceforge.net Message-ID: <4baa715f.3040...@joyofsetup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed See http://www.joyofsetup.com/2007/05/30/feature-conditions-and-ui/. Feature conditions aren't constantly evaluated; instead, they're evaluated by specific actions, which sees the FEATUREx property not set (or some other default value you give it) and therefore sets the feature level to 1. As an aside, licensing via installation is wide open to piracy. -- sig://boB http://joyofsetup.com/ On 3/24/2010 8:21 AM, Rohit Sharma (SIDC) wrote: > Hello > > > > I have a wix project where I have 2 Main features and 1 Main feature has > two sub features. I have added a dialog box which I show to the user > which takes the productkey as input from the user. The return value from > my custom action lets me know whether the Feature 1 or Feature 2 are to > be enabled. If either of them is enabled I am setting another button > i.e. BOTHFEATURES which I am using on next button new dialog. If its > false, clicking next will popup a message that Invalid product key. > > > > So here's how my custom action is returning values using dialog > (WixUI_FeatureTree): > > > > <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" > Value="LicenseDlg">LicenseAccepted = "1"</Publish> > > <Publish Dialog="LicenseDlg" Control="Next" Event="DoAction" > Value="CustomAction1" Order="1">1</Publish> > > <Publish Dialog="LicenseDlg" Control="Next" Property="FEATURE1" > Value="[FEATURE1]" Order="2">1</Publish> > > <Publish Dialog="LicenseDlg" Control="Next" Property=" FEATURE2" > Value="[FEATURE2]" Order="3">1</Publish> > > <Publish Dialog="LicenseDlg" Control="Next" Property="BOTHFEATURES" > Value="[ BOTHFEATURES]" Order="4">1</Publish> > > <Publish Dialog="LicenseDlg" Control="Next" Event="NewDialog" > Value="CustomizeDlg" Order="5"><![CDATA[BOTHFEATURES<> > "FAILURE"]]></Publish> > > <Publish Dialog="LicenseDlg" Control="Back" Event="NewDialog" > Value="LicenseAgreementDlg">1</Publish> > > > > FEATURE1 and FEATURE2 return SUCCESS if key is validated properly. > > > > Till now it's all good but the problem is in the condition which I want > to use to enable/ disable features: > > > > <MAINFEATURE1> > > ... > > <Feature Id='Web_FEATURE1' > > Title='HELLO' > > Description='The $(var.Product.Name) Web Installer > package.' > > ConfigurableDirectory="INSTALLDIR_WEB" > > Level='0'> > > > > <Condition Level="0"><![CDATA[FEATURE1 = "SUCCESS"]]></Condition> > > <Condition Level="1"><![CDATA[FEATURE1<> > "SUCCESS"]]></Condition> > > <ComponentRef Id="comp_$(var.Company.Name).ico" /> > > .... > > > > </Feature> > > > > > > <Feature Id='Web_FEATURE2' > > Title='HELLO2' > > Description='The $(var.Product.Name) Web Installer > package.' > > ConfigurableDirectory="INSTALLDIR_WEB" > > Level='0'> > > > > <Condition Level="0"><![CDATA[FEATURE2 = "SUCCESS"]]></Condition> > > > <Condition Level="1"><![CDATA[FEATURE2<> > "SUCCESS"]]></Condition> > > <ComponentRef Id="comp_$(var.Company.Name).ico" /> > > .... > > > > </Feature> > > ... > > </MAINFEATURE1> > > > > Now the problem is that though I am checking different condition in both > features above which are independent of each other, When I add a valid > key for feature One, it also enables Feature2 for some reason even > though I have set the Level='0' by default. Not sure if I am doing > something wrong here. > > > > Any help would be appreciated. > > > > > > Thanks > > Rohit > > > > ======= > Notice: This e-mail message, together with any attachments, contains > information of Symyx Technologies, Inc. or any of its affiliates or > subsidiaries that may be confidential, proprietary, copyrighted, > privileged and/or protected work product, and is meant solely for > the intended recipient. If you are not the intended recipient, and > have received this message in error, please contact the sender > immediately, permanently delete the original and any copies of this > email and any attachments thereto. > ------------------------------------------------------------------------ ------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ======= Notice: This e-mail message, together with any attachments, contains information of Symyx Technologies, Inc. or any of its affiliates or subsidiaries that may be confidential, proprietary, copyrighted, privileged and/or protected work product, and is meant solely for the intended recipient. If you are not the intended recipient, and have received this message in error, please contact the sender immediately, permanently delete the original and any copies of this email and any attachments thereto. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users