|
Silent Installation
|
This section discussess silent installation of the Java Runtime Environment (JRE) on Windows 32-bit platform. It is intended for:
The Silent Installation section has the following topics:
JavaTM SE Runtime Environment (JRE) installations are built using Microsoft Window Installer (MSI) 2.0 technology. MSI contains built-in support for silent or unattended installations. This document tells how to silently install the JRE using the .exe that launches the MSI installation.
In Java SE 6 The Windows offline installation command has the same syntax as the Windows Installation. The command is as follows:
<jre>.exe [/lang=<language ID>] /s [ADDLOCAL=jrecore[,extra][,other_US] | ALL]
[IEXPLORER=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>]
[REBOOT=Suppress]
where
<jre>.exe is the single executable installer for the Java
Runtime Environment (JRE)/lang=<language ID>, if used, sets
the localized language for the installer (see language
IDs)ADDLOCAL, if used, is either jrecore[,extra][,other_US] or ALLIEXPLORER=1, if used, indicates that the Plug-in
should be registered with the Internet Explorer browserMOZILLA=1 indicates that the Plug-in should be
registered with Mozilla 1.1 and later and Netscape browsers (for releases
prior to 5.0, see note above)INSTALLDIR, if
used, specifies the drive and path of the installationREBOOT=Suppress,
if used, indicates that if locked files are encountered the computer should
not be rebootedADDLOCAL=ALL is used, then all the features will be installed.ADDLOCAL=jrecore[,extra][,other_US]can specify the following options:
jrecore indicates the core of the JRE is installedextra (optional) indicates additional Fonts, Colors, and Soundbank
is installedother (optional) indicates locale-specific .jar files will be installed.ADDLOCAL is not used, then only the following configuration is installed:
jrecore will be installedextra will
not be installedother will be installed only if localization support,
other than English, is installed. INSTALLDIR is not specified, the installation will go into C:\Program Files\java\jre1.6.0 (default location). |
Note The command is case sensitive and there must be no spaces in the features
listed with |
Suppose the JRE installer is jre-6-rc-windows-i586.exe and
you want to install the following configuration:
The command to install the above mentioned configuration is as follows:
jre-6-rc-windows-i586.exe /s ADDLOCAL=jrecore,extra MOZILLA=1
Suppose the JRE installer is jre-6-rc-windows-i586.exe and you want to install the following configuration:
D drive at java\jreThe command to install the above mentioned configuration is as follows:
jre-6-rc-windows-i586.exe /s ADDLOCAL=ALL IEXPLORER=1 INSTALLDIR=D:\java\jre"
Note To keep the MS-DOS window open, until the installation of JRE is complete use the
|
This is the command line for uninstalling in silent mode for Implementation-Version
n1.n2.n3_n4n5:
msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0n1n2n3n4n50}
| Notes
|
msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}
msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}
Log file can be used to verify if a installation or uninstallation succeeded. To create a log file describing the installation or uninstallation append /L C:\<path>setup.log to the install or uninstall
command and scroll to the
end of the log file to verify.
The following is an example for installation:
jre-6-rc-windows-i586.exe /s /L C:\<path>setup.log
The above command causes the log to be written to the setup.log file.
The following is an example for uninstalling:
msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000} /L C:\<path>setup.log