qiong Posted July 12, 2019 Posted July 12, 2019 Hello I write the script as below Run("setup.exe") WinWaitActive("Winpower") Send("!n")if WinExists("Check Previous Version") Then Send("{Enter}") Else MsgBox(0,"","not enter if") ................ EndIf WinClose("") If the program check there is an old version version, it will pop up the "Check Previous version" dialog. I want the send "Enter" to do the next step, but the result is the install program will stop and pop up “not enter if" box。 I do the debug as below: Local $tempLineTitle= WinGetTitle MsgBox(0,"",$tempLineTitle) Local $tempLineText= WinGetText MsgBox(0,"",$tempLineText) if WinExists("Check Previous Version") Then I found the title is "Winpower 5.6.0.8", it isn't "Check Previous version", and the text is null. How to judge the pop up dialog and do the next step???
Earthshine Posted July 12, 2019 Posted July 12, 2019 If your setup can use silent install switch you should just use that My resources are limited. You must ask the right questions
qiong Posted July 12, 2019 Author Posted July 12, 2019 Yes, I can use the command "setup -i silent" to start the silent install, but It can't create the shortcut at the start menu and Desktop
qiong Posted July 12, 2019 Author Posted July 12, 2019 If I use the autoit3, I can create the shortcut at the start menu and Desktop
Earthshine Posted July 12, 2019 Posted July 12, 2019 yes you can, you could do that yourself. also I am willing to bet that you can get the silent install to create the shortcut. what is the installer you are dealing with and I will look at it. My resources are limited. You must ask the right questions
ajag Posted July 12, 2019 Posted July 12, 2019 Try WinWait ( "Check Previous Version", "", 5 ) if WinExists("Check Previous Version") Then Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1)
qiong Posted July 16, 2019 Author Posted July 16, 2019 Hello ajag: I can fix the issue by you method: WinWait("Check Previous Version","",5) If WinExists("Check Previous Version","") Then .................................... EndIf WinWaitActive("Winpower") ......................... WinClose("Winpower")
Earthshine Posted July 16, 2019 Posted July 16, 2019 I see you’ve asked the same question multiple threads and you don’t listen to any of the responses so I guess you go on the ignore list My resources are limited. You must ask the right questions
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now