newcome Posted June 14, 2012 Share Posted June 14, 2012 I need to automate the install process for 8 software. 2 of them are Microsofte product (MS Direct X and Windows SDK); 6 are Intel software. But the autoIt Send/ Control Click function does not work for any of them. Since I'm new to AutoIt, I'm not sure is the script I wrote wrone or is the install software I have has blocked automated mouse and key strokes.Is there any one use AutoIt script succesfuly installed MS DirectX SDK and Windows SDK for Windows 7?Below is the autoIt script and the console log:; Opt("wintitlematchmode", 2);Global $cmd = "C:\Vcsource\AutoIT_install\sw_install\intel_sdk_for_ocl_applications_2012_x64_setup.exe"local $wintitle = "Microsoft DirectX SDK (June 2010)"FileChangeDir("C:\Vcsource\AutoIT_install\sw_install")Run(@ComSpec & ' /c' & "DXSDK_Jun10.exe")Sleep(2000)Local $shwndInstall = WinWait($wintitle)$shwndInstall = WinGetHandle($wintitle)If IsHWnd($shwndInstall) Then If WinActivate($shwndInstall) Then If ControlClick ( $shwndInstall, "", "[CLASS:Button;INSTANCE:2]" ) Then ConsoleWrite("Able to click button" & @CRLF) Else ConsoleWrite("NOT able to click button" & @CRLF) EndIf EndIfElse ConsoleWrite("Install window is not activated " & @CRLF)EndIf Console output:>Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3+>20:11:38 AU3Check ended.rc:0>Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "V:\Installs\setup_install\t2.au3" Able to click button Link to comment Share on other sites More sharing options...
Chimaera Posted June 14, 2012 Share Posted June 14, 2012 Have you considered a silent install?It may not be relevant but its just a thoughthttp://msdn.microsoft.com/en-us/library/windows/desktop/ee416805%28v=vs.85%29.aspx Set up silently. Launch setup in silent mode so that users do not accidentally skip updating the DirectX runtime. You can do this by launching dxsetup.exe with the following command: path-to-redistributabledxsetup.exe /silent If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
newcome Posted June 14, 2012 Author Share Posted June 14, 2012 Chimera, Thank you! Your suggestion is very good and it will help me to get my task done for now. And I will find out hou to use AutoIt to get it done later. Link to comment Share on other sites More sharing options...
newcome Posted June 14, 2012 Author Share Posted June 14, 2012 I just go to web site to check dxsetup.exe. It is older version of software. I will check tomorrow and see for the latest MS DirectX SDK can be installed silently. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 14, 2012 Moderators Share Posted June 14, 2012 (edited) Hi, newcome. Here are the switches for the latest version of the SDK. Edited July 17, 2017 by JLogan3o13 "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...
newcome Posted June 14, 2012 Author Share Posted June 14, 2012 Hi JLogan3013, the thumbmails you attached is a little small and I can not see clearly. Do you think you could send me the URL for this page or make the picture a little bigger? You helped me on my previous pose and thank you for helping me again. Link to comment Share on other sites More sharing options...
newcome Posted June 14, 2012 Author Share Posted June 14, 2012 JLogan3013, ignore my previouse reply. I clicked Thumbnails and can see the contants now! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 14, 2012 Moderators Share Posted June 14, 2012 Hi, newcome, glad you can see them now. We're all here to help each other, I've got questions out there too "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