autoVIk Posted November 17, 2022 Share Posted November 17, 2022 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 comment Share on other sites More sharing options...
abberration Posted November 17, 2022 Share Posted November 17, 2022 I see this is your first post, so welcome to the forum. I am afraid that you have not given us enough information to help you. What program are you trying to install? Where did you get this AutoIt script you are using? If we had more info, we might be able to help. Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
autoVIk Posted November 18, 2022 Author Share Posted November 18, 2022 it is an installer of specialized corporate software. does not have a silent installation mode. there are no keys. i made the script Link to comment Share on other sites More sharing options...
autoVIk Posted November 18, 2022 Author Share Posted November 18, 2022 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 More sharing options...
Developers Jos Posted November 18, 2022 Developers Share Posted November 18, 2022 Does it require Admin rights? Try Added #RequireAdmin at the top of your script. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
autoVIk Posted November 18, 2022 Author Share Posted November 18, 2022 the problem is how to handle button presses in the program window with a script in console mode. No problems with permissions Link to comment Share on other sites More sharing options...
autoVIk Posted November 18, 2022 Author Share Posted November 18, 2022 13 hours ago, Jos said: Does it require Admin rights? Try Added #RequireAdmin at the top of your script. no result Link to comment Share on other sites More sharing options...
abberration Posted November 18, 2022 Share Posted November 18, 2022 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. Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
autoVIk Posted November 19, 2022 Author Share Posted November 19, 2022 (edited) 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 November 19, 2022 by autoVIk Link to comment Share on other sites More sharing options...
autoVIk Posted November 19, 2022 Author Share Posted November 19, 2022 Link to comment Share on other sites More sharing options...
abberration Posted November 19, 2022 Share Posted November 19, 2022 (edited) Controlclick("setup.exe", "", "[class:tbutton; instance:2]") I'm on my phone and doing this from memory - may need tweaking. Edited November 19, 2022 by abberration Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
autoVIk Posted November 19, 2022 Author Share Posted November 19, 2022 (edited) 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 November 19, 2022 by autoVIk Link to comment Share on other sites More sharing options...
autoVIk Posted November 19, 2022 Author Share Posted November 19, 2022 (edited) 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 November 19, 2022 by autoVIk Link to comment Share on other sites More sharing options...
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