Bob Arnson-6 wrote:
> 
> Jagdish Sakhiya wrote:
>> I want to show only one feature tree in customize dialog. 
>>   
> 
> Disable the features you don't want to show, using feature conditions or 
> Remove control events.
> 
> -- 
> sig://boB
> http://joyofsetup.com/
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 


Hi Bob, Thanks for reply. I am not able hide the features which I don’t want
to show in feature tree by features condition. 
So, I have implemented following code by using Remove control events. I am
able to mark feature as an unselected but I don’t want to show that features
itself in feature tree. Can you guide me how can we achieve this.
<Feature Id="Server" Title="Server" Level="1" Display="expand"
AllowAdvertise="no" ConfigurableDirectory="INSTALLDIR">
      <Feature Id="S_StreamlineServer" Title="Streamline Server"
AllowAdvertise="no" Level="1">
        <MergeRef Id="LexisNexis.Streamline.Component.StreamlineServer" />
      </Feature>
        ……. have 3 more features here
<Feature Id="Client" Title="Client" Level="1" Display="expand"
AllowAdvertise="no" ConfigurableDirectory="INSTALLDIR">
      <Feature Id="C_StreamlineClient" Title="Streamline Client"
AllowAdvertise="no" Level="1">
        <MergeRef Id="LexisNexis.Streamline.Component.StreamlineClient" />
      </Feature>
…… have 2 more features here 
<Feature Id="Developers" Title="Developer" Level="1" Display="expand"
AllowAdvertise="no" ConfigurableDirectory="INSTALLDIR">
      <ComponentRef Id="UtilityComponent"/>
      <ComponentRef Id="CommonRegistry"/>
      <Feature Id="D_DeveloperTools " Title=" DeveloperTools"
AllowAdvertise="no" Level="1">
  <MergeRef Id="LexisNexis.Streamline.Component.DeveloperTools" /> 
     </Feature>
…… have 2 more features here 
Publish Button events
  <Publish Dialog="ComponentTypeDlg" Control="Next" Event="AddLocal"
Value="Server"><![CDATA[COMPONENT_TYPE =1]]> </Publish>
      <Publish Dialog="ComponentTypeDlg" Control="Next" Event="AddLocal"
Value="Client"><![CDATA[COMPONENT_TYPE = 2]]> </Publish>
      <Publish Dialog="ComponentTypeDlg" Control="Next" Event="AddLocal"
Value="Developers"><![CDATA[COMPONENT_TYPE = 3]]> </Publish>
      <Publish Dialog="ComponentTypeDlg" Control="Next" Event="Remove"
Value="Server"><![CDATA[COMPONENT_TYPE <> 1]]> </Publish>
      <Publish Dialog="ComponentTypeDlg" Control="Next" Event="Remove"
Value="Client"><![CDATA[COMPONENT_TYPE <> 2]]> </Publish>
      <Publish Dialog="ComponentTypeDlg" Control="Next" Event="Remove"
Value="Developers"><![CDATA[COMPONENT_TYPE <> 3]]> </Publish>
<Publish Dialog="ComponentTypeDlg" Control="Next" Event="NewDialog"
Value="FeatureCustomizeDlg">1</Publish>

Where COMPONENT_TYPE is property which will be set based on component type
selected ion ComponentTypeDlg screen. Now I want to sholw eaither Server,
Client or Developer in FeatureCustomizeDlg dialog. 

-- 
View this message in context: 
http://n2.nabble.com/Disable-Features-in-Feature-tree-tp2180402p2256736.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to