Richard-45 wrote:
> 
> 
> In article <[EMAIL PROTECTED]>,
>     OneReallyCoolApplication <[EMAIL PROTECTED]>  writes:
> 
>> Let's say I have a feature MyFeature, and a CustomizeDlg where the user
>> can
>> select whether or not MyFeature will be installed. Depending on what the
>> user selects I want the Next button to link to a different dialog. So I
>> have
>> 
>> <Dialog Id="CustomizeDlg" ...>
>>             <Control Id="Next" Type="PushButton" ...>
>>                ...
>>                <Publish Event="NewDialog"
>> Value="SecondDlg"><![CDATA[(&MyFeature<>3)]]></Publish>
>>                <Publish Event="NewDialog"
>> Value="FirstDlg"><![CDATA[(&MyFeature=3)]]></Publish>
>>                <Subscribe Event="SelectionNoItems" Attribute="Enabled" />
>>             </Control>
>> </Dialog>
> 
> You can only have one NewDialog event associated with any control.
> The way to manage conditional transitions to different dialogs from a
> control is to use a property to hold the name of the next dialog.
> Conditionally set the property to hold different dialog names based on
> the different conditions and then use a NewDialog event with an
> Argument column that is the formatted property, i.e. [NextDialog].
> 

But how come the sample WiX code from Tramontana has multiple NewDialog
events? For example in their CustomizeDlg the Back PushButton has three
NewDialogs:

        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="$(loc.WixUIBack)">
          <Publish Event="NewDialog"
Value="[WixUI_CustomizeDlg_BackChange]">WixUI_InstallMode =
"Change"</Publish>
          <Publish Event="NewDialog"
Value="[WixUI_CustomizeDlg_BackCustom]">WixUI_InstallMode =
"InstallCustom"</Publish>
          <Publish Event="NewDialog"
Value="[WixUI_CustomizeDlg_BackFeatureTree]">NOT Installed AND WixUI_Mode =
"FeatureTree"</Publish>
        </Control>


-- 
View this message in context: 
http://www.nabble.com/Feature-selection-conditions-don%27t-work-on-reinstall-tf4679773.html#a13373653
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to