I found the answer
<http://msdn2.microsoft.com/en-us/library/aa368037.aspx>as to why I
was experiencing this behavior:
"The installer starts each event in the order specified in the Ordering
column. For example, a push button control can publish events to initiate a
transition to another dialog box, exit the dialog box sequence, and begin
file installation. The exception is that each control can publish a (sic)
most one NewDialog
<http://msdn2.microsoft.com/en-us/library/aa370533.aspx>or one
SpawnDialog <http://msdn2.microsoft.com/en-us/library/aa371863.aspx> event.
If multiple NewDialog and SpawnDialog control events are selected for the
same control, only the event with the largest value in the Ordering column
gets published when the control is activated."
Here's my theory...I *think* that the reason that this works when I do not
specify the "Order" attributes are because they get a value of "1", and the
installer probably grabs it out of the ControlEvent table the order that I
specified in my WiX source file. So, I think that since I have these
multiple "Next" handlers that both call NewDialog depending on the
condition, I should specify the "Order" attribute, but instead of leaving
the "1" as the condition for my second handler, I should specify the
opposite case. So much for brevity, huh? Just thought I'd share this with
everyone else. Please correct my if my assumptions are incorrect. Thanks
for all the help, Bob!
Levi
On 1/4/07, Levi Wilson <[EMAIL PROTECTED] > wrote:
Oops, I meant this for the first <Publish/>:
<Publish Dialog="SetupTypeDlg" Control="CompleteButton" Event="NewDialog"
Value="TestTextEnter" Order="1"><![CDATA[(&Feature2=3)]]></Publish>
On 1/4/07, Levi Wilson < [EMAIL PROTECTED]> wrote:
>
> Ahhh! Thank you so much! I've been messing around with this for a bit,
> and finally got it to work. I did run into a problem at first when I had
> the following for the CompleteButton in the SetupTypeDlg:
>
> ----------------------------
> <Publish Dialog="SetupTypeDlg" Control="CompleteButton"
> Event="NewDialog" Value="TestTextEnter"><![CDATA[(&Feature2=3)]]
> Order="1"></Publish>
> <Publish Dialog="SetupTypeDlg" Control="CompleteButton"
> Event="NewDialog" Value="VerifyReadyDlg" Order="2">1</Publish>
> ----------------------------
>
> When the "Order" attribute was included, the condition always defaulted
> to go to "VerifyReadyDlg" (I'm assuming because of the "1" condition?).
> When I removed the "Order" attribute, it worked as expected. Can you
> explain this behavior? I has assumed that the "Order" attribute would
> evaluate them one by one (starting with an order of 1) until a condition was
> met. This was not the case (unless I overlooked something). Thanks again
> for any information that you can provide me.
>
> - Levi
>
> On 1/4/07, Bob Arnson < [EMAIL PROTECTED]> wrote:
> >
> > Levi Wilson wrote:
> > > Is it possible to optionally display a dialog in the wizard sequence
> > > depending upon the features selected? Say that a component requires
> > a
> > > user to enter a server name....how do I not display the dialog in
> > the
> > > sequence if the component is not selected all the while not messing
> > up
> > > the UI wizard? Forgive my MSI parlance.
> >
> > Yes, it is but it's not terribly straightforward. The wizard sequence
> > is
> > faked in that the Back and Next buttons manually point to the right
> > dialogs. To support branching, you need to have a dialog's Next button
> > point to two different dialogs conditioned on the feature's action
> > state.
> >
> > Unfortunately, I don't know of any examples. I hope to eventually add
> > dialogs to the server custom actions and they'll demonstrate what you
> > need. Unfortunately, that's a ways off yet.
> >
> > --
> > sig://boB
> > http://bobs.org
> >
> >
> >
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users