Jump to content

problem with GUI installer in cmd


Recommended Posts

there is .exe installer without silent installation keys

autoit script for run this installer compiled  to .exe

i triyed run this script with cmd.

The process starts, but the installation does not occur. Problem with GUI in console

Link to post
Share on other sites
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 post
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 post
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 post
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 post
Share on other sites

its my mistake.

should be used  WinWait() instead WinWaitActive()

the script  work through 'psexec -i -s script2exe.exe'

 

does not work through the task scheduler

Edited by autoVIk
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...