Answering my own post.

> I'm trying to create a custom dialog that contains text based on 
> the features selected.

> It appears to me that I can only define what dialog appears next 
> using feature conditions like;
>       <Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog"
> Value="MG_CoreServerDlg" Order="2"><![CDATA[&Exchange=3  OR 
> !Exchange=3 OR &Perimeter=3   OR !Perimeter=3]]></Publish>

I resolved by creating 3 different text controls and then hiding the
invalid controls based on feature conditions.
E.g.

<?define head     = "Message head;" ?>
<?define smtp     = " - SMTPSVC info" ?>
<?define iis      = " - IIS info" ?>
<?define ExTrans  = " - Exchange info" ?>

<Control Type="Text" <snip> Id="DialogInfo1">
  <Text>$(var.head)&#xA;&#xD;$(var.ExTrans)</Text>
  <Condition Action="hide"><![CDATA[NOT( &Hub=3 AND NOT(&Edge=3)
)]]></Condition>
</Control>

<Control Type="Text" <snip> Id="DialogInfo2">
  <Text>$(var.head)&#xA;&#xD;$(var.smtp)&#xA;&#xD;$(var.iis)</Text>
  <Condition Action="hide"><![CDATA[NOT( NOT(&Hub=3) AND &Edge=3
)]]></Condition>
</Control>

<Control Type="Text" <snip> Id="DialogInfo3">
<Text>$(var.head)&#xA;&#xD;$(var.ExTrans)&#xA;&#xD;$(var.smtp)&#xA;&#xD;
$(var.iis)</Text>
  <Condition Action="hide"><![CDATA[NOT(&Hub=3 AND
&Edge=3)]]></Condition>
</Control>

Dale


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to