Sebastian82 Posted February 23, 2005 Share Posted February 23, 2005 Hi, I tried to install Java full automatically but my Script didnt work correct. It starts the installation but it didnt simulate the click. Do you know where the mistake is? ; <AUT2EXE VERSION: 3.1.0.4> BlockInput(1) RunAsSet("Administrator", @Computername, "password") ; Use local administrator rights in order to install the software Run("\\server\freigebe\Setup\Sun\j2sdk-1_4_2_04-windows-i586-p.exe") ; start installation WinWaitActive("Java 2 SDK, SE v1.4.2_04 - License", "&Weiter") Send("!n") sleep(1000) Send("!a") sleep(1000) Send("!n") sleep(1000) Send("!n") sleep(1000) Send("!i") sleep(1000) WinWaitActive("Java 2 SDK, SE v1.4.2_04-License", "&Finish") Send("!f") RunAsSet() MsgBox(0, "", "Java erfolgreich installiert") BlockInput(0) Exit Link to comment Share on other sites More sharing options...
Andre Posted February 23, 2005 Share Posted February 23, 2005 Hi, Did u try to install with the /s parameter ? Should work as an silent installation Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
ZeDMIN Posted February 23, 2005 Share Posted February 23, 2005 Which "click" is not working? the first send()? If you are running under Win9x there may be limitations with BlockInput(). Look in the help file for that. Some annotations: Why don't you take Java 1.5.0? The RunAsSet() at the end isn't required since you don't execute anything after it. I didn't test, but can you click "ok" on your MessageBox, if BlockInput wasn't disabled before? But in general i agree with Andre. If possible you should avoid the menu and install silently. Greetings, ZeD Link to comment Share on other sites More sharing options...
Sebastian82 Posted February 23, 2005 Author Share Posted February 23, 2005 (edited) Hi, the /s flag is an interessant option. I will try it in one of my working Scripts. Thanks for the hind. How would you install java with auto-it? My problem is that i do not know how a professional install code has to look like for java. Edited February 23, 2005 by Sebastian82 Link to comment Share on other sites More sharing options...
Andre Posted February 23, 2005 Share Posted February 23, 2005 RunAsSet("Administrator", @Computername, "password") ; Use local administrator rights in order to install the software Run("\\server\freigebe\Setup\Sun\j2sdk-1_4_2_04-windows-i586-p.exe /s") ; start installation u mean this ? What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
Sebastian82 Posted February 23, 2005 Author Share Posted February 23, 2005 (edited) Sorry, your answer where to fast. Please look at my answer over your reply. My OS ist Windows 2000 Edited February 23, 2005 by Sebastian82 Link to comment Share on other sites More sharing options...
Andre Posted February 23, 2005 Share Posted February 23, 2005 Sorry, what u mean now ? U can install the java JRE, what more u want to do ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
Sebastian82 Posted February 23, 2005 Author Share Posted February 23, 2005 (edited) Hi, sorry but my english is not so well. Once again lets start from the beginning: I tried to install java. The Script starts the java installation. The first action is a click in the install menu to continue, but the click wont execute. I think the mistake is the code line WinWaitActive("Java 2 SDK, SE v1.4.2_04 - License", "&Weiter") The script should wait until the temp files were loaded on the client machine. Then it should do a click on the Next active window. There is a Next button on it, but it wouldnt execute the click. I dont know why. Is there a mistake in the code? Edited February 23, 2005 by Sebastian82 Link to comment Share on other sites More sharing options...
ZeDMIN Posted February 23, 2005 Share Posted February 23, 2005 As Andre said before, these two lines should be enough:RunAsSet("Administrator", @Computername, "password") ; Use local administrator rights in order to install the softwareRun("\\server\freigebe\Setup\Sun\j2sdk-1_4_2_04-windows-i586-p.exe /s") ; start installationu mean this ? <{POST_SNAPBACK}>If u still want to go through the Setup "manually" you should check the window title of the setup and be sure that there is no such named window before the one with the next button on it.I would give it a try and do the install here, but i have and use only Java 1.5.0 Link to comment Share on other sites More sharing options...
SlimShady Posted February 23, 2005 Share Posted February 23, 2005 I suggest you use ControlClick for buttons. Use the AutoIt3 "Winfo" (Windows Info) tool to get the required information about the button(s). 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