How do I arrange a silent (unattended) Java installation?This article applies to:
SYMPTOMS
SOLUTION Introduction Java installations are built using Microsoft Windows Installer (MSI) 2.0 technology. MSI contains built-in support for silent or unattended installations. This document tells how to manually install Java using the .exe that launches the MSI installation. The installer options are explained. Command Line InstallThe Java SE 7 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] where
Installation ConfigurationsExample 1Suppose the JRE installer is jre-7-windows-i586.exe and you want to install the following configuration:
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:
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 FileLog file can be used to verify if an installation succeeded. To create a log file describing the installation append/L C:\ to the install command and scroll to the end of the log file to verify.Installation ExampleThe following is an example for installation:jre-7-windows-i586.exe /s /L C:\ The above command causes the log to be written to the setup.log file. |
|
来自: Wiley Library > 《JDK》