Install Genero Report Engine 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 installation and licensing of Genero products requires you to read and accept the End User License Agreement, which can be found on the Four Js website at http://4js.com/end-user-license-agreements/.

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-4.00.00-build202006121148-w64v141.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 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-4.00.00-build202006121148-w64v141.msi /l*vx gre.log GREDIR=D:\grj4.00 STARTMENUFOLDER="Four Js Genero Report Engine 4.00.00 (64 bits)"