Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Java Runtime Silent install switches

- - - - -

  • Please log in to reply
2 replies to this topic

#1
piedus

piedus

    Newbie

  • Member
  • 11 posts
  • Joined 04-February 06
Hi,

I´m making an w2k ui cd, founde this remark at sun java website:

Here is the command line for installing in silent mode:

<jre>.exe [/L<language ID>]/s /v "/qn [ADDLOCAL=jrecore[,extra][,other_US] | ALL] [IEXPLORER=1] [NETSCAPE6=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>] [REBOOT=Suppress] [JAVAUPDATE=0] [WEBSTARTICON=0]"

where

<jre>.exe is the single executable installer for the Java Runtime Environment (JRE); /L<language ID> , if used, sets the localized language for the installer (see language IDs); ADDLOCAL, if used, is either jrecore[,extra][,other_US] or ALL; IEXPLORER=1, if used, indicates that the Plug-in should be registered with the Internet Explorer browser; NETSCAPE6=1, if used, indicates that the Plug-in should be registered with Netscape 6 or later browsers; MOZILLA=1 indicates that the Plug-in should be registered with Mozilla 1.1 and later browsers; INSTALLDIR, if used, specifies the drive and path of the installation; REBOOT=Suppress, if used, indicates that if locked files are encountered the computer should not be rebooted; JAVAUPDATE=0, if used, indicates that the Java Update feature should be disabled (the Update tab in the Java Plug-in Control Panel will not appear); and WEBSTARTICON=0, if used, tells the installer to not create the Java Web Start icon on the desktop.


so I now use following command in my runonceex:

REG ADD %KEY%\zz39 /VE /D "Java Runtime" /f
REG ADD %KEY%\zz39 /V 1 /D "%systemdrive%\install\j2re-1_4_2_10-windows-i586-p.exe /1031 /s /v "/qn IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress WEBSTARTICON=0" /f

Somehow this doesn´t work, can somebody have a look what i´m doing wrong?

Note the "WEBSTARTICON=0". I saw a lot of "cleanup.cmd´s" doing that manually...


How to remove advertisement from MSFN

#2
MHz

MHz

    Just simple

  • Member
  • PipPipPipPipPipPipPip
  • 1,662 posts
  • Joined 02-August 04
  • OS:Windows 7 x64
  • Country: Country Flag

Hi,

I´m making an w2k ui cd, founde this remark at sun java website:

Here is the command line for installing in silent mode:

<jre>.exe [/L<language ID>] /s /v "/qn [ADDLOCAL=jrecore[,extra][,other_US] | ALL] [IEXPLORER=1] [NETSCAPE6=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>] [REBOOT=Suppress] [JAVAUPDATE=0] [WEBSTARTICON=0]"

where

<jre>.exe is the single executable installer for the Java Runtime Environment (JRE); /L<language ID> , if used, sets the localized language for the installer (see language IDs); ADDLOCAL, if used, is either jrecore[,extra][,other_US] or ALL; IEXPLORER=1, if used, indicates that the Plug-in should be registered with the Internet Explorer browser; NETSCAPE6=1, if used, indicates that the Plug-in should be registered with Netscape 6 or later browsers; MOZILLA=1 indicates that the Plug-in should be registered with Mozilla 1.1 and later browsers; INSTALLDIR, if used, specifies the drive and path of the installation; REBOOT=Suppress, if used, indicates that if locked files are encountered the computer should not be rebooted; JAVAUPDATE=0, if used, indicates that the Java Update feature should be disabled (the Update tab in the Java Plug-in Control Panel will not appear); and WEBSTARTICON=0, if used, tells the installer to not create the Java Web Start icon on the desktop.


so I now use following command in my runonceex:

REG ADD %KEY%\zz39 /VE /D "Java Runtime" /f
REG ADD %KEY%\zz39 /V 1 /D "%systemdrive%\install\j2re-1_4_2_10-windows-i586-p.exe /1031 /s /v "/qn IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress WEBSTARTICON=0" /f

Somehow this doesn´t work, can somebody have a look what i´m doing wrong?

Note the "WEBSTARTICON=0". I saw a lot of "cleanup.cmd´s" doing that manually...

Your Lang switch is does not look correct.
I do not use switches to suppress reboot or desktop icon as it is not required as no reboot or desktop icon creation happens.

#3
Steam Trout

Steam Trout

    Junior

  • Member
  • Pip
  • 52 posts
  • Joined 11-January 06
I happen to have the same problem with install failing. That's what I use (through WPI):
%wpipath%\Install\jre.exe /s /v "/qn IEXPLORER=1 MOZILLA=1"
Tried with no space between /v and " and with /S instead of /s with no avail :\
File is jre-1_5_0_11-windows-i586-p-s.exe

EDIT: Figured it out. Install failed because the version of JRE on my VM was already the one being installed. Sorry for unnecessary thread necromancy.

Edited by Steam Trout, 04 April 2007 - 03:50 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users