Silent Installation MFT Gateway - Windows

This section describes how to perform a silent installation of the MFT Gateway application. The part of the installation that is silenced is the user Interface (interactive portion). The installer must be placed on the target MFT Gateway system, in a directory of your choosing. You must also have your MFT Gateway license file available, as it will need to be copied to the target directory.

 

Below is a list of Windows CMD commands that will perform a silent installation. Please run them in the order in which they are listed. They can be run in a .cmd script. The script should be “run as administrator”.

 

Command: cd\<MFT Gateway installer location>

This command changes the directory to the location of the MFT Gateway installer. The directory will depend on where the end-user placed the installation file.

Example: cd\InstallerDirectory

 

Command: <MFT Gateway installer> -q -dir <Installation Directory>

This command runs the installer (executable file) and copies the installation files into the installation directory specified. 

Example: mft-gateway-install-x64-5.3.0.130.exe -q -dir "c:\Program Files\MFT Gateway"

 

Note: Program Files\MFT Gateway is the default installation directory when performing an interactive installation. You can change it as desired. Quotes must be used for the installation directory if the name contains spaces.

 

Command: cd\<Installation directory>

This command changes the directory to the installation directory specified in the prior command.

Example: cd\Program Files\MFT Gateway

 

Command: copy c:\<LicenseFileDirectory>\<license.lic> c:\<Installation directory>\etc\license.lic

This command copies the MFT Gateway license file to the installation directory’s etc subdirectory. The source directory will depend on where the end-user placed the license file.

Example: copy c:\InstallerDirectory\license.lic "c:\Program Files\MFT Gateway\etc\license.lic"

 

Note: The target license file name must be license.lic or the Gateway service will not start. Quotes must be used in the copy command if the target directory name contains spaces.

 

Command: database.exe -configure

This command configures the MFT Gateway database, which by default will use the built-in H2 database, if a custom database is not specified. Therefore, to use the built-in H2 database, run the above command as-is. To configure a custom database (such as MS SQL Server or Oracle), use the following command: database.exe -configure -url <DB_URL> -user <db_username> -password <db_password>.

Example: database.exe -configure -url jdbc:mysql://localhost:3306/gateway -user DBUser -password secret

 

Command: database.exe -init

This command initializes the database.

 

Command: add-administrator.exe -username <username> -password <password> -email <email address>

This command creates the administrator username, password and email, where the username/password is used to log in to the MFT Gateway Manager user interface.

Example: add-administrator.exe -username admin -password secret -email admin@domain.com

 

Command: web-configuration.exe -host <host/ip> -port <port number> -timeout <timeout in seconds>

This command configures the host and port for Gateway’s web-based MFT Gateway Manager user interface. It is not necessary to run this command if the default values are satisfactory for you. The default values consist of a host named localhost a port number of 20881, and a timeout of 60 seconds.

Example: web-configuration.exe -host localhost -port 20881 -timeout 60

 

Command: start_service

This command starts the MFT Gateway service.

 

See also: For more details regarding the above configuration options (e.g. database, admin account, port, etc.) see Installing on Windows