Hello all,
I have an installation script with a loop which waits for a window which takes a long time to appear... there are several other windows and pop ups after this screen which need buttons clicked, etc.
The loop works great but as of now the script stops working as soon as the loop completes successfully... the script remains active but doesn't perform any of the commands after the loop. I'd like to know how to continue with the rest of the installation after the loop completes.
Any ideas or suggestions would be greatly appreciated. Please find the code starting with the loop and the rest is what it's not being performed.
;; Wait for Installation to Complete and DBConfig Window to Appear:
While 1
; find control (Apply button) whose Text is Apply:
$var = ControlGetText("Advantage Utility", "DB Configuration", "[Text:Apply]")
If $var == "Apply" Then
; Activate the window
WinActivate("Advantage Utility","DB Configuration")
; Activate and Click on Apply
Send("{TAB 10}")
Sleep(1000)
Send("{ENTER}")
ExitLoop
EndIf
Sleep(1000)
WEnd
;; 2nd Pop-Up
WinWait("Success","Configured successfully ")
WinActivate("Success","Configured successfully ")
Sleep(1000)
Send("!Y")
;; 3rd Pop-Up
WinWait("Message","Blank Database Installation Completed")
WinActivate("Message","Blank Database Installation Completed")
Sleep(1000)
Send("{ENTER}")
;; Back to 1st Pop-Up
WinWait("Advantage Utility","DB Configuration")
WinActivate("Advantage Utility","DB Configuration")
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send("{ENTER}")
;; Final ADVANTAGE Install Screen
WinWait("Advantage - InstallShield Wizard","The InstallShield Wizard has successfully ")
WinWaitActive("Advantage - InstallShield Wizard","The InstallShield Wizard has successfully ")
Sleep(1000)
Send("{ENTER}")
Exit