Jump to content

Recommended Posts

Posted

I'm have looked through the forums and I have used this thread,

http://www.msfn.org/board/index.php?showtopic=16892&hl=Java

and I have used this page for silent install switches for Java,

http://java.sun.com/j2se/1.4.2/docs/guide/...ide/silent.html

and using both of those resources I am unable to get Java to install. Here is what I have tried so far

REG ADD %KEY%\008 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\008 /V 1 /D %CDROM%\postinstall\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0" /f

and

REG ADD %KEY%\008 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\008 /V 1 /D "\"%CDROM%\postinstall\SunJava\j2re-1_4_2_04-windows-i586-p.exe\" /s /v \"/qn ADDLOCAL=jrecore IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0\"" /f

I also tried this variation as well,

REG ADD %KEY%\008 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\008 /V 1 /D "%CDROM%\postinstall\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0"" /f

but both times, it gets skipped over very quickly during RunOnceEx. After the unattended install completes, I am able to install it using this command just fine

j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0

Please help as I am at my wits end trying to get this application to install.

Thanks


Posted

You need to wrap the whole thing in normal quotes and put \" for any quotes needed in the string.. So for that, I would something like this, which is straight out of my working RunOnce.cmd, changed slightly for your options, path and filename..

REG ADD %KEY%\008 /VE /D "Sun Java 1.4.2_04" /fREG ADD %KEY%\008 /V 1 /D "%CDROM%\postinstall\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v\"/qn ADDLOCAL=jrecore IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0\"" /f
Posted

THANK YOU THANK YOU THANK YOU! That worked like a charm! You don't know how many days of frustrating trial-and-error I went through before almost giving up. Thanks again for your help.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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