Install GRE on Windows in silent mode

Install Genero Report Engine on Windows® platforms using the MSI installer.

Important: Before you install the GRE, you must install the Java Runtime Engine (JRE).

The msiexec utility provides the means to install, modify, and perform operations on Windows Installer from the command line. The /qn option allows you to install in silent mode. The msiexec utility expects an msi file. To be compliant with Microsoft® User Access Control (UAC) requirements, the msi file is embedded inside an exe file. To extract the msi file from the exe file, use the /x option:

c:\fjs-grj-version-build-osident.exe /x

For example:

c:\fjs-grj-3.20.06-build166789-w32v141.exe /x

A msi file is created in the same directory and with the same name as the exe file.

Options

Table 1 shows the most common options for msiexec relating to installation and un-installation.

Table 1. msiexec install and uninstall options
msiexec option Description
/qn Silent mode with no UI. If /qn is not specified, the graphical installer is used.
/i package-name.msi Install the specified msi package.
/x package-name.msi Uninstall the specified msi package.
/log logfile Write processing info to the specified log file.
/l*vx logfile Provide verbose (detailed) logs in the specified log file

Enter msiexec from the command prompt to view the complete list of available options.

Arguments

You can pass arguments to the msiexec installer on the command line.

Table 2. Arguments for the msiexec installer
Argument Description
PRODUCTDIR=your_gredir_path The path where GRE will be installed. It is an alias of GREDIR variable.
GREDIR=your_gredir_path The path where GRE will be installed. It is an alias of the PRODUCTDIR variable.
STARTMENUFOLDER=your_startmenufolder_path Customize the location for the shortcuts in the startmenu. For example, "fjs\gre".
ADDLOCAL=[ALL|GRE] Set the features to install.
  • ALL (default): Install GRE (mandatory) and .gre file association
  • GRE: Install GRE only
FORCEREMOVEPRODUCTDIR=YES On uninstall, remove the PRODUCTDIR location, even if it is not empty. Default value: "" (empty string)
  • YES = Force removal of PRODUCTDIR
  • Any other entry = Keep files in PRODUCTDIR
Note: Quotes are only required around the argument value when a space character is in the value string.

Example

The following commands install the JRE and the GRE silently:

msiexec /qn /i fjs-grj-3.20.06-build156498-w64v140.msi /l*vx gre.log GREDIR=D:\grj3.20 STARTMENUFOLDER="Four Js Genero Report Engine 3.20.06 (64 bits)"