Hi Folks, new here and brand new to scripting in general.
I have begun to make a script that will allow for an unattended installation of an addin my company is deploying. However, this executable has dependencies in its installer, and one is .NET. That part works fine. The Visual Studio part, however, when i insert a ControlClick command, it..... just doesnt do anything. I searched the forums and i didnt see anything about *installing* studio 2010 via AutoIt.
Thank you very much for anyone who can either point out an obvious blunder on my part or perhaps inform me as to why visual studio 2010 installer cant be controller by autoit.
Thanks!
Plain Text
#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: Josh Elliott Script Function: Deploy NetSuite for Outlook Addin. #ce ---------------------------------------------------------------------------- RunAs ( "myself", "domain", "password", 0, "\\\server\path\NetSuiteForOutlook.exe" ) WinWaitActive( "NetSuite for Outlook Installer") ControlClick("NetSuite for Outlook Installer", "", 1000) If RegRead ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Install", "1") Then WinWaitActive("Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Setup") Else WinWaitActive("Microsoft .NET Framework 4.0 - Client - Download") ControlClick("Microsoft .NET Framework 4.0 - Client - Download", "", 1012) WinWaitActive("Microsoft .NET Framework 4 Client Profile Setup") ControlClick("Microsoft .NET Framework 4 Client Profile Setup", "", 104) ControlClick("Microsoft .NET Framework 4 Client Profile Setup", "", 12324) ControlClick("Microsoft .NET Framework 4 Client Profile Setup", "", 12325) EndIf ;If RegRead ( WinWaitActive("Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Setup") Send("{Enter}") ;ControlClick("Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Setup", "", 29, 14) ;ControlClick("Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Setup", "", 285) ;ControlClick("Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Setup", "", 289)