Running The Installer With A Response File
You can run the installer in unattended mode from the command line. To do this you must create a response file to provide the information the installer needs. A response file is a text file which contains the information a user would typically provide while running the Setup wizard or responding to command-line prompts. This information is in this format:
name=valueTo create a response file that contains the necessary data, first run the command-line installer in one of these ways:
- Using default mode, with no arguments. After the installation finishes, the installer creates a response file named
response.varfile. - Using the command-line installation with the -console parameter. This lets you specify the name you want to assign to the response file.
After the installation finishes, the installer creates the response file and stores it in the .install4j directory. This file contains name=value data captured during the installation process. You can edit this file if necessary to modify the values. Here is an example:
#install4j response file for (application/version)
#Wed Mar 16 16:53:12 EDT 2011 sys.languageId=en
sys.installationDir=d\:\\(application/version)
You can then pass the response file to the installer using the -varfile parameter. For example, to run the installer in unattended mode using a response file, include these parameters:
-q -console -c -varfile varfilename| Parameter | Description |
|---|---|
| -q | Runs the installer in unattended mode. |
| -console | If the installer is executed in unattended installation mode (-q) and you include -console as the second parameter, a console is allocated on Windows that displays the output of the installer. |
| -c | Runs the installer in the console mode. |
| -varfile | Varfilename specifies the name of the response.varfile to use. You can include a full path. |
Note:
You can use a response file on both Windows and Linux and Solaris installations. For more information about response files and install4j installations, go to this website: https://www.ej-technologies.com/resources/install4j/help/doc/main/introduction.htmlHere is an example:
(application/version).exe -q -console -c -varfile response.varfileHere is an example of the output you will see:
Extracting files... Downloading ...
Extracting files...
Finishing installation...