This section includes the following topics:
Note: This chapter is intended for system administrators who want to deploy Java Plug-in on multiple PCs in the Intranet environment without any user interaction.
The format of a response file resembles that of an .ini file, but response files have .iss extensions. A response file is a plain text file consisting of sections containing data entries.
The InstallShield installations can be invoked with the -s parameter to run silently. The Java 2 Platform SDK and Runtime Environment installations can be run in interactive or silent mode.
Here is an example of how to create the response file:
j2re1_4_0-win.exe -a -r -f1C:\setup.issNote that there is no space between the -f1 and the filename.
Here is an example of a response file:
[InstallShield Silent]
Version=v5.00.000
File=Response File
[DlgOrder]
Dlg0=SdLicense-0
Count=2
Dlg1=SdAskDestPath-0
[SdLicense-0]
Result=1
[SdAskDestPath-0]
szDir=C:\Program Files\Java Plug-in 1.4
Result=1
[Application]
Name=Java Plug-in
Version=1.4
Company=JavaSoft
After you have created the response file, you are ready to run the installation
in silent mode using InstallShield Silent. When running an installation in silent
mode, be aware that no messages are displayed. Instead, you can ask for a log
file to be created to record installation information, including if the installation
was successful. You can review the log file to determine the result of the installation.
To launch InstallShield Silent, run your j2re1_4_0-win.exe install bundle with the flags "-s -a -s -f1filename.iss" where filename.iss is the name of your setup.iss file.
If you are doing this from an MS-DOS shell, you may find it convenient to use the "start /w" command, as that will cause MS-DOS to wait until the install is complete. For example:
start /w j2re1_4_0-win.exe -s -a -s -f1C:\setup.iss
If you want to obtain a log file describing the install, use the additional flag "-f2filename.log". This will cause the log to be written to the filename.log file. For example:
start /w j2re1_4_0-win.exe -s -a -s -f1C:\setup.iss -f2C:\setup.log
To verify if a silent installation succeeded, look at the ResultCode value in the [ResponseResult] section of setup.log. InstallShield writes an appropriate return value after the ResultCode keyname.
Note that there should be no space between the -f1 or -f2 flag and the following filename.