There is a typo in the post which is not present in the actual code. This was a result of copy and paste.
Markup should read as: <Control Id="NextButton" Type="PushButton" X="230" Y="318" Width="66"Height="18" Text="[ButtonText_Next]">" TabSkip="no" Default="yes" > <Condition Action="disable">NOT((&FeatureA=3) OR (&FeatureB=3))</Condition> <Condition Action="enable">(&FeatureA=3) OR (&FeatureB=3)</Condition> <Subscribe Event="SelectionNoItems" Attribute="disable" /> <Publish Event="DoAction" Value="FindRelatedProducts">1</Publish> <Publish Event="NewDialog" Value="ConfirmInstallForm">1</Publish> </Control> My apologies for the typo. Umesh Umeshj wrote: > > Hi, > > In our feature selection dialog we are using SelectionTree control. > The selection tree shows only two features: featureA and featureB. > > When no feature is selected the 'Next' button should not allow the user to > continue further. It should be disabled. > > Here is the relevant markup for 'Next' button > > <Control Id="NextButton" Type="PushButton" X="230" Y="318" Width="66" > Height="18" Text="[ButtonText_Next]">" TabSkip="no" Default="yes" > > <Condition Action="disable">NOT((&FeatureA=3) OR > (&FeatureB=3))</Condition> > <Condition Action="enable">(&FeatureBA=3) OR > (&FeatureB=3)</Condition> > ... > ... > ... > </Control> > > Subscribing to SelectionNoItems does not seem to work, hence explicit > conditions were added to enable or disable the next button. This seems to > take effect but does so in a delayed fashion. If the user removes > selections next button does not change state. But if the user then presses > 'Back' button and then the 'Next' button he sees the 'Next' button > disabled. How does one go about enabling or disabling the 'Next' button as > soon as selections change? > > Thanks for any information. > -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/FeatureSelection-Dialog-tp5536563p5536597.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users