PDA

View Full Version : Dialog processing


GordonHolfelder
05-27-2005, 07:35 PM
I'm trying to setup an install where the user chooses one of four possible modes, in the custom mode the custom dialog is displayed. When using the code listed below, moving through the dialogs with next, previous, change option and next causes the install script to exit (no message). Also the set active setup type doesn't seem to change the values in the custom dialog. Am I doing this right or is there an easier way?

Thanks in advance,
Gordon

Code:
Define Wizard Dialog "#1" (Welcome)
Define Wizard Dialog "#2" (License Agreement)
Define Wizard Dialog "#3" (Select Install Folder)
Define Wizard Dialog "#4" (Radio Buttons)
Define Wizard Dialog "#5" (Custom Install)
Define Wizard Dialog "#6" (Ready to Install)
Hide Wizard Dialog "#5"

Loop Wizard
Handle Wizard Events()

If %_SB_DIALOGID% Equals "4" Then
If %RADIO% Equals "1" Then
Set Active Setup Type to "Stand Alone"
Hide Wizard Dialog "#5"
ElseIf %RADIO% Equals "2" Then
Set Active Setup Type to "Typical Server"
Hide Wizard Dialog "#5"
ElseIf %RADIO% Equals "3" Then
Set Active Setup Type to "Typical Workstation"
Hide Wizard Dialog "#5"
Else
Set Active Setup Type to "Custom"
Show Wizard Dialog "#5"
End
End
If %_SB_DIALOGNEXTID% Equals "5" Then
Refresh Next Dialog
End
End

GordonHolfelder
05-30-2005, 10:20 PM
Got this one figured out