2 Installing With a Configuration File

This page describes the installer configuration file that supplements JRE command line installation options.

Note:

MSI Enterprise JRE Installer requires a commercial license for use in production. To learn more about commercial features and how to enable them, visit

http://www.oracle.com/technetwork/java/javaseproducts/.

An installer configuration file is an alternative to, and extension of, options specified on the installer command line. You can use a configuration file to standardize installations and to specify options that are not available on the command line.

This page has these sections:

Installer Configuration File Options

The following table lists the installer configuration file options.

Note:

You may substitute the value Enable for 1 and the value Disable for 0.

You may use the same options at the command line when running the MSI Enterprise JRE Installer. See "Installing the JRE from the Command Line".

For JRE 7, INSTALLDIR, REMOVEOLDERJRES, and TRANSFORM options in Table 2-1, "Configuration File Options" must be passed in from the command line. They are not supported for use from a configuration file.

Table 2-1 Configuration File Options

Option Values Applicable Version Description

DEPLOYMENT_RULE_SET=

path

JDK7 and JDK8

Specify the path and file name of your organization's deployment rule set.

For JRE 7, see http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/deployment_rules.html and for JRE 8, see http://docs.oracle.com/javase/8/docs/technotes/guides/deploy/deployment_rules.html for more information about the Deployment Rule Set feature.

DYNAMICBASELINEOFF=

Enable, Disable

JDK7 and JDK8

If set to Enable, disable Secure-Static-Versioning (SSV), which prevents applets from running on older releases of the JRE.

Default: Disable (which enables SSV)

EULA=

Enable, Disable

JDK7 and JDK8

If a Java applet or Java Web Start application is launched, then prompt the user to accept the end-user license agreement (EULA).

Default: Disable

INSTALLCFG=

path

JDK7 and JDK8

Specify the absolute path to the install configuration file. See "Sample Installer Configuration File" for an example. The file must exist, be encoded in UTF-8, and have Read file permission.

INSTALLDIR=

path

JDK7 and JDK8

Folder into which the files are installed.

Default: Windows default installation folder

Note: For JRE 7, this option must be passed in from the command line. It is not supported for use from the configuration file. See "Installing the JRE from the Command Line."

NOSTARTMENU=

Enable, Disable

JDK8

Specify that the installer installs the JRE without setting up Java Start Menu items.

Default: Disable

REMOVEOLDERJRES=

0, 1

JDK7 and JDK8

Applicable to Enterprise MSI only. Enables uninstallation of all existing JREs on the system during JRE install.

Default: 0

Note: For JRE 7, this option must be passed in from the command line. It is not supported for use from the configuration file. See "Installing the JRE from the Command Line."

Using REMOVEOLDERJRES=0 leaves all Java versions on the system. Using REMOVEOLDERJRES=1 removes all existing Java versions from the system.For example, running jre1.8.0_60.msi REMOVEOLDERJRES =1 will remove all of the existing JREs from the system.

STATIC=

Enable, Disable

JDK7 and JDK8

Perform a static installation (see "Performing a Static Installation").

Default: Disable

TRANSFORMS=

:language identifier (decimal value)

JDK7 and JDK8

Specify the language in which to run the MSI Enterprise JRE Installer.

Default: :1033

Note: For JRE 7, this option must be passed in from the command line. It is not supported for use from the configuration file. See "Installing the JRE from the Command Line."

To run the installer in a language other than American English (locale en_US), specify the language's language identifier (LCID) with this option.

For a list of supported language identifiers, open http://helpnet.installshield.com/installshield19helplib/ and go to Additional Installation Options, Creating Multilingual Installations, and then Language Identifiers.

For example, to run the installer in Simplified Chinese, specify the following:

TRANSFORMS=:2052

USAGETRACKER_CFG=

path

JDK7 and JDK8

Specify the path and file name of the Java Usage Tracker properties file. See http://docs.oracle.com/javacomponents/usage-tracker/overview/index.html for more information.

WEB_JAVA_SECURITY_LEVEL=

H (high), VH (very high)

JDK7 and JDK8

Configure the installation's security level for Java applications running in a browser or run with Java Web Start.

Default: H

WEB_JAVA=

Enable, Disable

JDK7 and JDK8

Configure the installation so downloaded Java applications are, or are not, allowed to run in a web browser or by Java Web Start.

Default: Enable


Sample Installer Configuration File

The following is a sample installer configuration. It specifies the following:

  • Install the JRE without setting up Java start-up items.

  • Do not prompt the user to accept the end-user license agreement (EULA) if a Java applet or Java Web Start application is launched.

  • Set the security level for unsigned Java applications running in a browser to very high.

Example 2-1 Sample Installer Configuration File

NOSTARTMENU=Enable
EULA=Disable
WEB_JAVA_SECURITY_LEVEL=VH

System Runtime Configuration File

After installing the JRE with a configuration file, the installer saves the file (with a subset of options used during install) in %ALLUSERSPROFILE%\Oracle\Java\java.settings.cfg. The value of the environment variable %ALLUSERSPROFILE% is typically C:\ProgramData.