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].

The &Feature syntax is only valid after CostFinalize has run.  Because
of this, you're better of holding the requested install state of
features selected in your UI through your own properties.  Either that
or you have to add a 'DooAction CostFinalize' in your control events,
but beware that CostFinalize is not a lightweight action.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

-------------------------------------------------------------------------
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