Your first dialog (in a series) is the only one of that series you should place into the InstallUISequence. That first dialog will then call the second dialog, the second can call the first, either one can cancel the series, and only when the second dialog is done do you close the series, which would then continue the installation.
Conventions are: Your first dialog should have the "Last" button permanently disabled (there is nothing to go back to). Your first dialog's "Next" button uses the NewDialog event to replace itself with the second dialog. Your second dialog's "Last" button uses the NewDialog event to replace itself with the first dialog. Your second dialog should end with "EndDialog" (when clicking "Next") to continue the installation. The entire series is conditioned in InstallUISequence if needed (by conditioning the first dialog in the series). Only "initial" dialogs for each series (which are independent, final dialogs don't go "back" to the progress, for instance) show up in InstallUISequence, the other dialogs link in via the navigation buttons and events. -----Original Message----- From: Dan Giambalvo [mailto:danie...@microsoft.com] Sent: Monday, October 26, 2009 2:15 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Understanding how Back and Next buttons work I'm trying to wrap my head around exactly how Back/Next buttons work, and the right way to wire them together. In my installer UI, I have two dialogs: WelcomeEula Dialog and Keycode Dialog. I declare them both in my InstallUISequence as follows: <Show Dialog="WelcomeEulaDlg" Before="KeycodeEntryDlg">NOT Installed</Show> <Show Dialog="KeycodeEntryDlg" Before="ProgressDlg">NOT Installed</Show> Simply by doing this, the Next button on my WelcomeEulaDlg seems to automatically progress to the KeycodeEntryDlg (it seems this is because it has some other dialog calls within its series of publish actions). But the back button on the second dlg doesn't automatically work. It seemed the way this gets solved was with the following code: <Control Id="Back" Type="PushButton" X="146" Y="169" Width="56" Height="17" Text="!(loc.WixUIBack)" > <Publish Event="NewDialog" Value="WelcomeEulaDlg">1</Publish> </Control> This succeeded and getting the back button to work, but now there's a different issue. If I go back, then the Next button no longer takes me to the KeycodeEntryDlg, but instead takes me past it to the install. I could seemingly solve this by adding an explicit call in the Next button on WelcomeEulaDlg to move to the KeycodeEntryDlg (something I don't have right now) but that seems to defeat the purpose of the InstallUISequence being sequenced! So, my question is what is the right way to make these dialog transitions happen in both directions, and code them in the right way? Thanks for the help! -Dan ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users