Jump to content

Recommended Posts

Posted

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???

1.png

Posted

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

Posted

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

 

Posted

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")

 

Posted

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...