Tachikoma Posted July 3, 2004 Share Posted July 3, 2004 HelloI'd like to install the Sun Java VM in RunOnceEx. The command though to install it has extra "%systemdrive%\install\Java\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"I could call it from an external batch, but is there a way to make it work in RunOnceEx?Thanks Link to comment Share on other sites More sharing options...
Lost Soul Posted July 4, 2004 Share Posted July 4, 2004 try this it works fine for me REG ADD %KEY%\045 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v/qn" /f Link to comment Share on other sites More sharing options...
ZoSTeR Posted July 4, 2004 Share Posted July 4, 2004 You have to add an escape character:" becomes \" Link to comment Share on other sites More sharing options...
Tachikoma Posted July 4, 2004 Author Share Posted July 4, 2004 Thanks people!Cheers Link to comment Share on other sites More sharing options...
Caramel Posted July 4, 2004 Share Posted July 4, 2004 REG ADD %KEY%\030 /VE /D "Sun Java VM 1.5.0" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\SunJava\jre-1_5_0-beta2-windows-i586.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /fWorks for me - i found that i needed to suppress the reboot (and yes it is actually "reallysuppress") and i use qb cause i like to have the status displayedbtw you DO need the quotes around "/qb IEXPLORER=1 REBOOT=ReallySuppress" Link to comment Share on other sites More sharing options...
Kanel Posted July 5, 2004 Share Posted July 5, 2004 REG ADD %KEY%\030 /VE /D "Sun Java VM 1.5.0" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\SunJava\jre-1_5_0-beta2-windows-i586.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /fWorks for me - i found that i needed to suppress the reboot (and yes it is actually "reallysuppress") and i use qb cause i like to have the status displayedbtw you DO need the quotes around "/qb IEXPLORER=1 REBOOT=ReallySuppress" Thank you very much for the switches! 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