Java Silent Installation and MSI Extraction Instructions

java logo

There are two methods to deploying Java Clients, using MSI or Offline Installation files. This guide will step you through the process of gathering and using both.

Offline EXE Silent Installation Instructions

You will need to use the Offline Installer that is available from our Java MSI Archive and then add on the parameters that you require for your own environment.

Below are the parameters, switches and examples for a Java silent install. The Java Windows offline installer command has following syntax:

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


  • <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).

Example 1

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

Example 2

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

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.

MSI Installation Instructions

If you want to run the MSI installers as silent, then you can use the following command:

msiexec.exe /i "javainstaller.msi" /q /norestart


  • msiexec.exe – this starts the MSI installer engine
  • /i – this tells the msiexec.exe to run an install
  • “javainstaller.msi” – filename of the MSI installer
  • /q – tells the msiexec.exe to run as silent
  • /norestart – tells the msiexec.exe to not allow an automatic restart after installation completion

Uninstalling the old version of Java Client using MSI Installer

Run the following command to uninstall the JRE:

32-bit JRE:

msiexec /x {26A24AE4-039D-4CA4-87B4-2F83218025F0} /qb /norestart

64-bit JRE:

msiexec /x {26A24AE4-039D-4CA4-87B4-2F86418025F0} /qb /norestart

The value in curly braces is the MSI product code for the JRE you want to uninstall. The text in blue, 18025, correlates to the JRE version 1.8.0_25. Modify the MSI product code accordingly depending on the JRE version that you want to uninstall.

Using the old version of Java Client using Offline EXE Installer

You can use this simple command to carry out the uninstall of old versions of Java Client (silently due to the /s variable):

jre1.8.0_91.exe /s REMOVEOUTOFDATEJRES=1

But if you want to carry out more advanced changes, you will need to create a configuration file to use alongside the offline EXE installer. So, create a text file, save it as a .cfg extension and you should use the options below to carry out what you want to do with your installer:

You also have all of these options to add to your configuration file:

  • INSTALL_SILENT=Enable, Disable
  • AUTO_UPDATE=Enable, Disable
  • WEB_JAVA=Enable, Disable
  • WEB_JAVA_SECURITY_LEVEL=H (high), VH (very high)
  • EULA=Enable, Disable
  • REBOOT=Enable, Disable
  • NOSTARTMENU=Enable, Disable
  • SPONSORS=Enable, Disable

The command line you would then use to run the offline installer and configuration file would be:

jre1.8.0_91.exe INSTALLCFG=PATH/configfile.cfg
To continuing reading this guide, please click page 2 below….

You might also like...

Leave us a message...

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