Java Client Silent Installation Guide

Java MSI

Last updated on June 29th, 2023 at 02:23 am

Read Time:2 Minute, 42 Second

In some of our previous guides we have shown you how to extract the MSI and CAB files for the easy deployment of the Java Client.

Well, it seems that this method no longer works with the newer versions so we thought we would update you with how to install silently with all the options that go with it.

To do this, you will need to use the Java Offline Installer that Java supply and then add on the parameters that you require for your own environment. Below you will find the download link for getting the offline installer and also the parameters, switches and examples for a silent install.

The offline installer command has following syntax:

<jre>.exe [/s] [INSTALLDIR=:] [STATIC=1] [WEB_JAVA=0/1] [WEB_JAVA_SECURITY_LEVEL=VH/H/M/L]

where:

  • <jre>.exe is the single executable installer for Java
  • /s, if used, indicates silent installation
  • INSTALLDIR, if used, specifies the drive and path of the JRE.
  • If INSTALLDIR is not specified, the installation will go into C:Program Filesjavajre (default location).
  • STATIC=1, if used, specifies a static installation.
  • WEB_JAVA=0, if used, disables any Java application from running in the browser.
  • WEB_JAVA=1, the default, enables Java applications in the browser.
  • WEB_JAVA_SECURITY_LEVEL: if used, sets the security level of unsigned Java apps running in a browser. The possible values for this field are V (very high), H (high), M (medium, the default) or L (low).

Java Client Basic Install

Suppose the Java installer is jre-7-windows-i586.exe and you want to install the following configuration:

  • Perform a Windows Installation
  • Install the JRE core, additional fonts, colors, and Soundbank

The command to install the above mentioned configuration is as follows:

jre-7-windows-i586.exe /s

Java Client Advanced Install

Suppose the JRE installer is jre-7-windows-i586.exe and you want to install the following configuration:

  • Perform a Windows Offline Installation and install the JRE on D drive at javajre
  • Have all features of the JRE installed

The command to install the above mentioned configuration is as follows:

jre-7-windows-i586.exe /s INSTALLDIR=D:\java\jre

Note: To keep the MS-DOS window open, until the installation of Java is complete use the start /w command as follows:

start /w jre-7-windows-i586.exe /s
start /w jre-7-windows-i586.exe /s

Creating a Log File

Log file can be used to verify if an installation succeeded. To create a log file describing the installation append /L C:setup.log to the install command and scroll to the end of the log file to verify.

The following is an example for installation:

jre-7-windows-i586.exe /s /L C:setup.log

The above command causes the log to be written to the setup.log file, this is our personal favourite and we have the log file point to a server share so that we can keep an eye on any failed log file installations.

Feedback

If you have any questions or comments on this guide, then please feel free to leave a message below using our comments section.

Click to rate this post!
[Total: 1 Average: 5]

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.