PDA

View Full Version : Flow Control within Loop Wizard



NewsArchive
12-11-2013, 03:32 AM
I should know how to do this, but cannot recall how or find it in the help.

After the users select the install folder, I check for the existence of a file before
proceeding.
Checking for the existence I can do, but how can I control the loop wizard dialogs so
that they cannot proceed? I want them to try again with the "SELECTINSTALLFOLDER"

Here are my Dialogs and Loop Wizard.

================
[ User Interface ]
! Wizard dialog definition(s)
Define Wizard Dialog "#1" (Welcome)
Define Wizard Dialog "SELECTINSTALLFOLDER" (Select Install Folder) (%_SB_INSTALLDIR%)
Define Wizard Dialog "TESTHERE" (Ready to Install) ()

! The Wizard Loop displays the dialog screens that the user sees in the installation

Loop Wizard (Abort Dialog Active)
If %_SB_DIALOGID% Equals "$SELECTINSTALLFOLDER$" Then
Set Variable %CHECKFILE% to "%_SB_INSTALLDIR%\LMSAC13.DLL"
If %CHECKFILE% File or Folder exists Then
Display Message Box "OK Found LMS13AC.dll" -- "OKOK"
Else
Display Message Box "N B G\n" -- "NOT FOUND"
/* How to set WIZARD BACK from here? HEY Wizard, GO BACK 1 */
/* Show Wizard Dialog "$SELECTINSTALLFOLDER$" NOPE..... */
End
End

End
==============

JohnG

NewsArchive
12-11-2013, 03:33 AM
John,

Use "Cycle" after you displayed the "N B G\n" -- "NOT FOUND" message. The
user can then select a new folder again.

Friedrich

NewsArchive
12-11-2013, 03:33 AM
Hi Friedrich

Great, I'll do that.
By the way, N B G = No Bloody Good :-) I use it a lot.

John

NewsArchive
12-11-2013, 10:43 AM
> By the way, N B G = No Bloody Good :-) I use it a lot.

<G>. I like it :)

Friedrich