Sign in to follow this  
Followers 0
xytras

jre.exe AutoIt install

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Have you tried running the exe directly, without AutoIt? It may be that the exe is a bad copy.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by ctyankeeinok

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0