MYK Posted November 13, 2015 Share Posted November 13, 2015 (edited) I am using Autoit to install an application.When I execute the script while system is not locked the installer application launches as maximized and but when when system is locked it get's minimized due to which the scripts don't run and wait for it to get maximised. Can some one help please? I have checked many solutions online but not very successfull. Below is my code#include <Array.au3>#include <WinAPIShPath.au3>$CmdLine[1];Run($CmdLine[1])Sleep(2000)WinWait("Installer Application","&Next")ControlClick("Installer Application","&Next","[CLASS:Button; INSTANCE:2]")Sleep(2000)WinWait("Installer Application","Yes") ...... The code goes on. The issue is only at the start, After the Run() command the application is minimized and not active due to which the script pauses until I manually mmaximize it. Please help Edited November 13, 2015 by MYK Link to comment Share on other sites More sharing options...
water Posted November 13, 2015 Share Posted November 13, 2015 Welcome to AutoIt and the forum!Can you tell us which program you try to install? Most installers provide a silent installation command line switch. So there would be no need to automate the GUI. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
MYK Posted November 16, 2015 Author Share Posted November 16, 2015 @Water .... It's similar to any installer like your games installation or a photoshop installation ... Basically a setup.exe .... Could you please share a sample silent installer please? Link to comment Share on other sites More sharing options...
water Posted November 16, 2015 Share Posted November 16, 2015 It depends on the tool that is used to create the installation exe.Most of the time I ask Google for "xxxx silent installation command line switch" where "xxxx" is the name of the product. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Zedna Posted November 20, 2015 Share Posted November 20, 2015 Look here:https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 20, 2015 Moderators Share Posted November 20, 2015 Could you please share a sample silent installer please?We certainly can, if you would share the product name. As has been pointed out, every application is different. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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