[Friday, January 14, 2005 2:44 PM]
Kyle,
Please try the following (or use see attached 5.0.1014 script). If the
filename does not include 'USA' it shows a message box with an alert and
then the user is returned to the same 'Location Dialog' to input the correct
data.
-----
! Wizard dialog definition(s)
Define Wizard Dialog: #1 (Welcome)
Define Wizard Dialog: #2 (Select Install Folder)
Define Wizard Dialog: #3 (Ready to Install)
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard
Handle Wizard Events()
If %_SB_DIALOGID% Equals "2" Then
Set Variable %CHECKVAR% to Upper(%_SB_INSTALLDIR%)
Set Variable %RESULT% to InStr(, %CHECKVAR%, "USA")
If %RESULT% Equals "0" Then
Message Box "Filename does not contain USA! Try again." -- "Error"
Set Focus to Control ID $DESTINATION_EDIT1$
Cycle Loop
End
End
End
-----
Does this help?
Thanks,
Friedrich
--
Friedrich Linder
www.lindersoft.com
Fax: 1.954.252.3910