xytras Posted September 20, 2009 Share Posted September 20, 2009 Hello all! I'm currently a new user with AutoIt. I have gone through a few of the tutorials. Currently I'm trying to do an AutoIt install with jre-6u16-windows-i586.exe. I started the script with this Run("jre-6u16-windows-i586-s.exe") jre-6u16-windows-i586-s.exe is located in the same directory as the .mu3 And nothing happens.. Any ideas? Link to comment Share on other sites More sharing options...
lordofthestrings Posted September 20, 2009 Share Posted September 20, 2009 try some error handling, what to do in case of error. the run function returns to you the ProcessID when it's successfull if it fails it sets @error to non zero. Here's how you could use this: $pid = run("jreinstaller.exe") if @error <> 0 then msgbox(0,"",$pid) endif Link to comment Share on other sites More sharing options...
xytras Posted September 20, 2009 Author Share Posted September 20, 2009 try some error handling, what to do in case of error. the run function returns to you the ProcessID when it's successfull if it fails it sets @error to non zero. Here's how you could use this: $pid = run("jreinstaller.exe") if @error <> 0 then msgbox(0,"",$pid) endif I put that in the script but it looks like the .exe it's self wont install now lol one problem after the next. Link to comment Share on other sites More sharing options...
omikron48 Posted September 21, 2009 Share Posted September 21, 2009 Have you tried running the exe directly, without AutoIt? It may be that the exe is a bad copy. Link to comment Share on other sites More sharing options...
ctyankeeinok Posted September 21, 2009 Share Posted September 21, 2009 (edited) I have successfully used the following:RunWait('jre-6u16-windows-i586.exe /s /v"/qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0 /L c:\jre6install.log"')You can read more on the Sun jre silent install pages. The documentation is not great.http://java.sun.com/javase/6/docs/techno.../deployment/deployment-guide/silent.html Edited September 21, 2009 by ctyankeeinok 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