Jasu Posted May 24, 2011 Posted May 24, 2011 I'm trying to automate an install of the MS .NET 3.5 Framework SP1 as it's a prereq for a different app. I have the script so it will run that other app with no issues, IF .Net 3.5 is already installed. So, I now have the script check for the installation of .Net 3.5, if it's installed proceed - If not I have to install .Net 3.5 first. I can get the setup to start it pulls up the 'Welcome to Setup' screen and I just can't for the life of me get this script to select and click on the 'I have read and ACCEPT the terms of the License Agreement' (uhhhh....I have them read the terms first before we run the script ) How in the heck do I get this to work? I've tried ControlCLick, MouseClick, ControlCommand and I'm just not getting it for some gooooooofy reason. ControlClick("Microsoft .NET Framework Setup","I have read","[CLASS:Button; INSTANCE:22]") is my latest attempt AU3Info Class Button Instance 22 ClassnameNN Button22 Name Advanced Mode [CLASS:Button;INSTANCE:22] ID 1055 Text I have read and &ACCEPT the terms of the License Agreement Position 14,219 ControlClick Coords 6, 9 Can someone give me a tad of a helping hand here? Thanks Ahead of time
wakillon Posted May 24, 2011 Posted May 24, 2011 (edited) You can try a silent install... Edited May 24, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
sleepydvdr Posted May 24, 2011 Posted May 24, 2011 (edited) This works for me: WinActivate("Microsoft .NET Framework 3.5 Setup") ControlClick("Microsoft .NET Framework 3.5 Setup","I have read","[CLASS:Button; INSTANCE:22]") ControlClick("Microsoft .NET Framework 3.5 Setup","Install >","[CLASS:Button; INSTANCE:19]") Edit: I just noticed you are wanting to install SP1. What I did was for installing .Net 3.5. Edited May 24, 2011 by sleepydvdr #include <ByteMe.au3>
Jasu Posted May 25, 2011 Author Posted May 25, 2011 This works for me: WinActivate("Microsoft .NET Framework 3.5 Setup") ControlClick("Microsoft .NET Framework 3.5 Setup","I have read","[CLASS:Button; INSTANCE:22]") ControlClick("Microsoft .NET Framework 3.5 Setup","Install >","[CLASS:Button; INSTANCE:19]") Edit: I just noticed you are wanting to install SP1. What I did was for installing .Net 3.5. I didn't see why this wouldn't work, the dialogs are all the same. It's just not going....hmmmmgrrrrr
wakillon Posted May 25, 2011 Posted May 25, 2011 Did you try like this too ? WinActivate("Microsoft .NET Framework 3.5 Setup") ControlClick("Microsoft .NET Framework 3.5 Setup","I have read","Button22") ControlClick("Microsoft .NET Framework 3.5 Setup","Install >","Button19") AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Jasu Posted May 25, 2011 Author Posted May 25, 2011 Did you try like this too ? WinActivate("Microsoft .NET Framework 3.5 Setup") ControlClick("Microsoft .NET Framework 3.5 Setup","I have read","Button22") ControlClick("Microsoft .NET Framework 3.5 Setup","Install >","Button19") Yup, tried that too. Trying the silent install option now. My issue with that is how to tell when the install is finished
wakillon Posted May 25, 2011 Posted May 25, 2011 When process doesn't exists ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Jasu Posted May 25, 2011 Author Posted May 25, 2011 When process doesn't exists !Kinda figured that out.Also found the /qb switch (displays minimal UI - shows only progress)Now to figure out how to set this topic to 'RESOLVED' Thanks for the help everyone
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