Java windows msi installer

1 Use the MSI Enterprise JRE Installer to Install the JRE

You can use the Microsoft Windows Installer (MSI) Enterprise JRE Installer to install and uninstall the Java Runtime Environment (JRE) for Windows.

The MSI Enterprise JRE Installer is available as part of Oracle Java SE Subscriptions and other legacy products (such as Oracle Java SE Advanced or Oracle Java SE Suite), and is only available to customers for download through My Oracle Support (MOS).

The Microsoft Windows Installer (MSI) Enterprise JRE Installer enables you to install the JRE across your enterprise. Because it fully supports Windows Installer 3.0, it is fully compatible with system management software, such as Systems Management Server (SMS) and Systems Center Configuration Manager (SCCM). These software management suites enable you to securely deploy software across your enterprise. In addition to the features and options that you can specify with the MSI Enterprise JRE Installer, you can specify a Java Usage Tracker configuration file and a deployment rule set.

This section includes the following topics:

System Requirements

Before installing the JRE, verify that your system meets the minimum system requirements.

See System Requirements for Installing the JDK and the JRE on Windows in the Java Platform, Standard Edition Installation Guide for minimum processor, disk space, and memory requirements.

If you have any difficulties, see General Java Troubleshooting in the Java Platform, Standard Edition Troubleshooting Guide or submit a bug report at http://bugreport.java.com/bugreport/.

Installing the JRE from the MSI Enterprise Installer

You can install the JRE by downloading and running the appropriate Oracle JRE MSI Enterprise Installer for your system.

You must have administrative permissions in order to install the JRE.

  1. Download the required version of the MSI Enterprise Installer from Information Center: Installation & Configuration for Oracle Java SE (Doc ID 1412103.2) on My Oracle Support.
    1. Click the Complete List of Java SE downloads (document ID 1439822.1) link in the Downloads (Latest JDK/JRE) section.
    2. Click the link of the appropriate Oracle JRE MSI Enterprise Installer for your system and download it.
  2. Run the installer with administrative permissions under the supported Windows Installer environments.

    Installing the JRE from the Command Line

    You can install the JRE by downloading the appropriate Oracle JRE MSI Enterprise Installer for your system and running it from the command line.

    1. Click the MOS link on the Oracle Java SE Subscription page and download the appropriate MSI Enterprise Installer for your system.
      1. Click the Complete List of Java SE downloads (document ID 1439822.1) link in the Downloads (Latest JDK/JRE) section.
      2. Click the link of the appropriate Oracle JRE MSI Enterprise Installer for your system and download it.
    2. Open an MS-DOS prompt with Administrative permissions.
    3. Run one of the following commands depending on the type of installation that you want to perform:
      • Basic UI mode:
      • Silent or unattended mode:

      The following items describe the variables used in these commands:

      installer.msi : The name of the MSI Enterprise JRE Installer that you obtained in the previous step.

      configuration_file_path : The path of the installer configuration file. See Use an Installer Configuration File to Install the JRE.

      options : Options with specified values, separated by spaces. Use the same options as listed in Installer Configuration File Options. You can also use standard Windows Installer options.

      Creating a Log File

      You can use a log file to verify that an installation succeeded.

      To create a log file describing the installation, append /L C:\ path \setup.log to the install command and scroll to the end of the log file to verify.

      The following is an example of creating a log file:

      This example causes the log to be written to the C:\ path \setup.log file.

      Performing a Static Installation of the JRE

      You can perform a static installation of the JRE if you want to leave a JRE installed during a Java update.

      To perform a static installation of the JRE, specify the command-line option or the configuration file option STATIC=1 .

      A later version of the same JRE family will be installed in a separate directory. This mode ensures that vendors, who require a specific version of the JRE for their product, can be certain that the JRE will not be overwritten by a newer version.

      The default installation directory of a static JRE (prior to JDK 9) is C:\Program Files (x86)\Java\jre n (for 32-bit versions) or C:\Program Files\Java\jre n (for 64-bit versions), where n was the full Java SE release and update number (for example, n = 18.0_20 for JRE release 8 update 20).

      Uninstalling the JRE with Java Removal and Uninstall Tools

      You can uninstall the JRE by using either the Java Removal Tool or the Java Uninstall tool.

      • To uninstall the JRE with the Java Removal Tool, use the Add/Remove Programs utility in the Microsoft Windows Control Panel . The Java Removal Tool is integrated with the uninstallation process, and it will guide you through the removal of older JREs.

      To uninstall the JRE with the online Java Uninstall tool, go to https://www.java.com/en/download/uninstallapplet.jsp

      The Java Uninstall tool helps you improve your computer security by finding and uninstalling older versions of Java. The Uninstall tool shows you a list of the Java versions on your computer and then removes those that are out-of-date.

      The Java Uninstall tool will not run if your system administrator specified a deployment rule set in your organization.

      The deployment rule set enables enterprises to directly manage their Java desktop environment and continue using legacy business applications in an environment of ever-tightening Java applet and Java Web Start application security policies. The deployment rule set enables administrators to specify rules for applets and Java Web Start applications. These rules might specify that a specific JRE version must be used. Consequently, the Java Uninstall tool will not run if it detects a deployment rule set that ensures required JREs are not uninstalled.

      See Deployment Rule Set in the Java Platform, Standard Edition Deployment Guide .

      Uninstalling the JRE from the Command Line

      You can uninstall the JRE from the command line.

      Run the following command to uninstall the JRE:

      In the command, use the MSI product code of the JRE version that you want to uninstall. In the following examples, the values that are in braces are the MSI product code of the JRE that you want to uninstall. The text in bold represents the JRE version that you want to uninstall.

      The following command uninstalls the 32-bit JRE, version 1.8.0_25:

      The following command uninstalls the 64-bit JRE, version 1.8.0_25:

      Enterprise JRE Installer FAQ

      The “Enterprise JRE Installer”, or “Java MSI Installer”, allows system administrators to quickly and consistently roll out pre-configured Oracle JRE updates to Windows systems via automation tools. It is available to Java SE Subscription, and Java SE Desktop Subscription subscribers, and is a commercial feature entitlement for legacy Java SE Advanced and Java SE Advanced Desktop customers. The alternative to the Java MSI Installer is to use the public “exe” installer, which is designed for manual installation on one machine at a time.

      What does the MSI Installer provide?

      MSI stands for “Microsoft System Installer”, and has a consistent format to manage information normally entered manually, and allows the customization of installations through the use of transforms. System Administrators can then mass-install (or uninstall) these MSIs through desktop management systems like Microsoft SCCM.

      The Java MSI Installer documentation appears at https://docs.oracle.com/javacomponents/msi-jre8/install-guide/ and provides information including a list of supported configurations. The Java MSI Installer is available to Java SE Advanced and Java SE Advanced Desktop licensees through My Oracle Support (MOS).

      Please note that a Java SE Support entitlement alone does not permit use of the Java MSI installer. A Java SE Subscription, Java SE Desktop Subscription, legacy Java SE Advanced or Java SE Advanced Desktop license is required for each desktop, and server the Java MSI installer will target.

      WLS Enterprise customers are provided a Java SE Advanced entitlement, and may use the MSI to install on the systems where WLS runs, they cannot however deploy the MSI across unrelated systems without a separate Java SE Subscription, Java SE Desktop Subscription, Java SE Advanced or Java SE Advanced Desktop license.

      The Java MSI installer is only available through MOS for licensees of Java SE Subscription, Java SE Desktop Subscription, Java SE Advanced and Java SE Advanced Desktop. There are Java MSI installers for JRE 7 update 95 and later, and JRE 8 update 20 and later. There is no MSI installer for JRE 6.

      What is the key value proposition of the Java MSI Installer?

      Oracle releases Java updates a minimum of four times per year following the Critical Patch Schedule, and also releases additional feature and ER updates throughout the year.

      The Java MSI Installer saves the system administrator time as they can re-use configurations and deploy a new Java update quickly, and in line with the critical patch schedule. Without the Java MSI Installer, administrators must manually build, manage, and test their own packages several times per year, through unsupported means. Unless the administrator is proficient with creating MSI installers this will take time and any mistakes coud result in costly delays, and risk with enterprise-wide Java deployments.

      Can’t I just build my own MSI, or extract the data I need from the gratis JRE?

      The public executable “exe” installers available from Java.com, OTN or MOS are intended for individual users who will manage their own installation. Some organizations may choose to manually build their own MSI package from scratch for internal use. These MSIs or and bundle derived from extracting the contents of the executable installers are not supported. Using executable installers in desktop management systems like Microsoft SCCM is not supported.

      Some users may try to extract and modify the temporary MSI contained within the executable installer; this MSI is very different from the Java MSI Installer made available to Java SE Advanced and Java SE Advanced Desktop customers, and is not intended for enterprise use.

      The Java MSI Installer available to Java SE Advanced and Java SE Advanced Desktop licensees is fully compliant with MS ICE standards and is designed to be run standalone, making it possible to deploy silently over frameworks such as SCCM and Active Directory. All MSI ‘Modes’ are supported: Install, Remove, Rollback and Repair along with Installer options and configuration of commercial features (e.g. UsageTracker).

      The temporary MSI contained within the executable installer is not intended to be run standalone and its use in this way may cause issues. This is especially true as it relates to “FilesInUse”, and product registration when run silently, or over deployment frameworks. There is also no ‘Repair’ mode available, and it is not possible to configure some commercial features; moreover, the internal MSI format is designed for the executable and subject to change or removal at any time. Compatibility between systems may be problematic and any organization taking the time and effort to use this approach will need to carefully re-test their installation and uninstallation processes with every single update. Any issues encountered in this situation will not be covered by Support.

      If I have Java SE Advanced, how do I configure the Commercial MSI for my environment?

      The Advanced Management Console provides a feature called Java Install Customizer, which allows users to create a new customization, or to simply bring forward their previous configuration. Various other MSI customization tools are available from third parties.

      How to create a MSI Windows installer for a Java program?

      I’d like to create a single Microsoft Installer file for a Java program. I can’t use Netbeans or any Maven plugin to do it because I can’t use Oracle Java and/or JavaFX (mainly for legal reasons) and both seem to use Oracle native deployment + JavaSE 1.8.

      • a Java Runtime Environment (OpenJDK 1.7 JRE)
      • a script (.bat)
      • a fat JAR
      • an icon file
      • a few text files

      I don’t want to use the JRE of the system, that’s why I provide another JRE. The script just calls the JRE with a few arguments. The icon file is in .ico format. The fat JAR is the JAR containing all necessary Java classes, native libraries and assets, including the third party libraries.

      I’d like to allow the end user to install, run and uninstall my program. I want to provide one shortcut in the start menu to run it and another one to uninstall it. It seems to be explained here. Do I have to use anything else to create a shortcut to uninstall my program?

      I’ve looked at Wix Toolset for several weeks. I understand that I have to write a wxs file to use with «candle.exe», it creates a wixobj file, I have to run «light.exe» with this file and I get a MSI file.

      I know how to add a file, it’s explained here but I don’t know how to add the whole directory containing the JRE without mentioning each file one by one. How can it be done in the wxs file?

      How to pick some unique GUIDs?

      Is there already a (more?) simple tool that I can use to make a MSI file from a fat JAR? I prefer understanding how to build such a file in command line under Windows first before trying to do the same programmatically with Apache POI under GNU Linux.

      Edit.: This is my first wxs file:

      Edit.2: This is the file obtained by running «heat» on the JRE directory.

      17 Windows JRE Installer Options

      This page describes options for installing, configuring, and creating a log file for the Windows Java Runtime Environment.

      This page contains the following topics:

      See «JDK 8 and JRE 8 Installation Start Here» for general information about installing JDK 8 and JRE 8.

      Introduction

      This page describes options for installation of the Java SE Runtime Environment (JRE) on Windows 32-bit platform. It is intended for:

      System administrators deploying the JRE with Java Plug-in and Java Web Start technologies on multiple PCs in their Intranet without user interaction.

      Vendors having products requiring the JRE. The JRE can be silently (non-interactively from the command line) installed with their product.

      JRE installers are built using Microsoft Window Installer (MSI) 2.0 technology. MSI contains built-in support for silent installations. This topic explains how to manually install the JRE using the .exe file that runs the MSI.

      Command-Line Installation

      This section describes the command-line options for the JRE Windows Offline Installer. Run the installer as follows:

      jre refers to the JRE Windows Offline Installer base file name (for example, jre-8u05-windows-i586.exe ).

      INSTALLCFG= configuration_file_path specifies the path of the installer configuration file. See «Installing With a Configuration File» for more information.

      options are options with specified values separated by spaces. Use the same options as listed in Table 20-1, «Configuration File Options». In addition, you may use the option /s for the JRE Windows Offline Installer to perform a silent installation.

      Static Installation

      If you perform a static installation of the JRE (by specifying the command-line or configuration file option STATIC=1 ), then the Java Auto Update feature will leave that JRE installed during a Java update. A later version of the same JRE family will be installed in a separate directory. This mode ensures that vendors, who require a specific version of the JRE for their product, can be certain that the JRE will not be overwritten by a newer version.

      The default installation directory of a static JRE is C:\Program Files (x86)\Java\jre n (for 32-bit versions) or C:\Program Files\Java\jre n (for 64-bit versions), where n is the full Java SE release and update number (for example, n = 1.8.0_20 for release 8 update 20).

      Creating a Log File

      Use a log file to verify that an installation succeeded. To create a log file describing the installation, append /L C:\ path setup.log to the install command and scroll to the end of the log file to verify.

      The following is an example of creating a log file:

      Читайте также:  Set execute permissions linux
Оцените статью