## Installing silently

JReport provides four script files for installing JReport Enterprise Server silently without user participation in the installation process. They are ServerV9_typical.script for the Typical Installation for Standalone Server type, ServerV9_custom.script for the Custom Installation for Standalone Server type, and ServerV9.script using which you can specify either of the two installation types. You can choose a script file according to your requirements.

Follow the steps below to install JReport Enterprise Server silently:

1. Download a script file from the Jinfonet website, for example, ServerV9_typical.script.
2. Some built-in demo report sets (\SampleReports\*.cls) with HSQLDB as the data source (server\db\demo.script) have been provided. At the end of the installation, the installer will configure the report sets and catalog to the correct data path. This calls some AWT classes that require GUI support.

   So, if you have an X server installed, you should set the Display variable so that this step can be performed successfully.

   `$ DISPLAY=hostname(or IP address):0.0
   $ export DISPLAY`

   Note: If you do not have X server or a pure text environment, this step can be ignored. However, you may find that the demo report sets will not be able to run after you start the JReport Enterprise Server due to having the wrong default data source path. In which case, you can use JReport Designer to publish some working report sets for testing purposes.

3. Run the following command, and JReport Enterprise Server will be installed in the designated path:

   `$ sh EntSvrSetup.sh -options ServerV9_typical.script -silent`

Notes:

- When installing JReport Enterprise Server silently, make sure you do not use overwrite installation, instead, install the server to a new directory.
- When you install the Update or Service Pack silently, edit the script file update.script in `<install_root>\help\server\en\samples` to your own requirements. This file is used to create an option file (i.e. response file) for the Installation Wizard. It predefines all the information that is required for the installation.

  You can also create a script file and save it as follows:

      -W bean13.selection=1
      -W spcheck.installdir="/usr/local/JReport/Server"
      -W KeyCheckBean.uid=UID
      -W KeyCheckBean.key=Password

  Modify the above lines according to your own environment and configurations.