Jump to content

problem with GUI installer in cmd


autoVIk
 Share

Recommended Posts

Run(@ScriptDir & "\aistm.exe")
$WinTitle ="some text"
WinWaitActive($WinTitle, "LogoPage")
WinActivate($WinTitle, "LogoPage")
ControlClick($WinTitle, "", "TButton2")

$WinTitle ="some text"
WinWaitActive($WinTitle, "WelcomePage")
WinActivate($WinTitle, "WelcomePage")
ControlClick($WinTitle, "","TButton2")


$WinTitle ="some text"
WinWaitActive($WinTitle, "CompleteInfo")
WinActivate($WinTitle, "CompleteInfo")
ControlClick($WinTitle, "", "TButton2")

and this

AutoItSetOption('MouseCoordMode',0)
Run(@ScriptDir & "\aistm.exe")

$WinTitle ="some text"
WinWaitActive($WinTitle, "LogoPage")
WinActivate($WinTitle, "LogoPage")
MouseClick("primary", 364, 377, 1, 0)


$WinTitle ="some text"
WinWaitActive($WinTitle, "WelcomePage")
WinActivate($WinTitle, "WelcomePage")
MouseClick("primary", 364, 377, 1, 0)



$WinTitle ="some text"
WinWaitActive($WinTitle, "CompleteInfo")
WinActivate($WinTitle, "CompleteInfo")
MouseClick("primary", 364, 377, 1, 0)

i tried two options

Link to comment
Share on other sites

Are you using the AutoIt Window Info Tool (x64 or x86)? If so, perhaps you can give us more of the info that it provides. Does it show info for the Class and Instance for the buttons? Those would be very helpful.

With the new info you provided, the one thing I would suggest is switching the order of the script lines containing WinWaitActive with WinActivate. I think you need to activate the window first, then wait until it is active. 

Link to comment
Share on other sites

I tried swapping. no result.
will explain. if I run it on the command line as 'script2exe.exe', then the installer window opens and the installation process goes on.
if I run it  'psexec -i -s script2exe.exe', then the installer process appears in the task manager, but the installation does not occur.
I think the problem is that there are no objects - buttons in the console session, so the script cannot interact with the buttons

Edited by autoVIk
Link to comment
Share on other sites

with this setting, the script does not work either through the task scheduler or 'psexec -i -s script2exe.exe'

 

if I run it on the command line as 'script2exe.exe', then the installer window opens and the installation process goes on.

Edited by autoVIk
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...