Joe Snyder
12-28-2005, 11:41 PM
I am finding that the variable %_SB_DIALOGNEXTID% used by the Loop Wizard is being reset to 0, causing an infinite loop, when "Break Loop" is executed in the inner loop of the code below. Is this an expected behavior or am I doing something improperly?
Loop Wizard
Wizard Auto Break
If %_SB_DIALOGID% Equals "$LICENSEAGREEMENT$" Then
Set Variable %DRIVES_FOUND% to GetSystemInfo(Enumerate Disk Drives)
Set Variable %DRIVE_COUNT% to CountListItems(%DRIVES_FOUND%)
Loop
Set Variable %LOOPCOUNT% to (Increment Variable by 1)
Set Variable %DRIVE_LETTER_TO_TEST% to GetListItem(%DRIVES_FOUND%, %LOOPCOUNT%)
Set Variable %VALID_FMG_ELIGIBLE_DRIVE% to GetSystemInfo(Drive Type) of "%DRIVE_LETTER_TO_TEST%"
! If network drive or hard drive, look for existing files
If %VALID_FMG_ELIGIBLE_DRIVE% Equals "$DRIVE_REMOTE$" Or %VALID_FMG_ELIGIBLE_DRIVE% Equals "$DRIVE_FIXED$" Then
Set Variable %FMGMASTR_ALREADYEXISTS% to Search for File("FMGMASTR.EXE")
If %_SB_ERRORCODE% Equals "1" Then
! Reset install path if existing one is found
Set Variable %_SB_INSTALLDIR% to %FMGMASTR_ALREADYEXISTS%
Break Loop
End
End
End
End
End
Loop Wizard
Wizard Auto Break
If %_SB_DIALOGID% Equals "$LICENSEAGREEMENT$" Then
Set Variable %DRIVES_FOUND% to GetSystemInfo(Enumerate Disk Drives)
Set Variable %DRIVE_COUNT% to CountListItems(%DRIVES_FOUND%)
Loop
Set Variable %LOOPCOUNT% to (Increment Variable by 1)
Set Variable %DRIVE_LETTER_TO_TEST% to GetListItem(%DRIVES_FOUND%, %LOOPCOUNT%)
Set Variable %VALID_FMG_ELIGIBLE_DRIVE% to GetSystemInfo(Drive Type) of "%DRIVE_LETTER_TO_TEST%"
! If network drive or hard drive, look for existing files
If %VALID_FMG_ELIGIBLE_DRIVE% Equals "$DRIVE_REMOTE$" Or %VALID_FMG_ELIGIBLE_DRIVE% Equals "$DRIVE_FIXED$" Then
Set Variable %FMGMASTR_ALREADYEXISTS% to Search for File("FMGMASTR.EXE")
If %_SB_ERRORCODE% Equals "1" Then
! Reset install path if existing one is found
Set Variable %_SB_INSTALLDIR% to %FMGMASTR_ALREADYEXISTS%
Break Loop
End
End
End
End
End