Jump to content

jre.exe AutoIt install


xytras
 Share

Recommended Posts

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

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...