Install FLM

Four Js License Manager can be installed on Windows®, UNIX™, or macOS™ platforms.

Warning:

Be sure you are installing the correct binary files for your operating system. To do so, examine the installation package name, which includes the operating system brand name. For more information on the installation package name, go to Four Js License Manager packages.

Install Four Js License Manager on UNIX platforms

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 https://4js.com/end-user-license-agreements/.

To display the installation options, run the installation command with the help (-h) option:

./fjs-flm-6.xx.xx-buildYYYYMMDDhhmm-osident.run -h

For example:

./fjs-flm-7.00.00-build202512111200-l64xl228.run -h

  1. Choose a directory where Four Js License Manager will be installed, such as /opt/fourjs/flm.
  2. Log in as a user with permission to write to the chosen directory.
  3. Copy the self-extractable file into a temporary directory.
  4. Run the self-extractable shell script:
    ./fjs-flm-6.xx.xx-buildYYYYMMDDhhmm-osident.run
    Example:
    ./fjs-flm-7.00.00-build202512111200-l64xl228.run
  5. Follow the instructions displayed.

When installation is complete, see Four Js License Manager User GuideFour Js License Manager User Guide for configuration information and instructions.

Install Four Js License Manager on UNIX platforms in silent mode

Install Four Js License Manager silently on GNU/Linux® and UNIX platforms.

To start the installation, type the following:

./fjs-flm-version-buildYYYYMMDDhhmm-osident.run -a -q -t install_dir

For example:

./fjs-flm-7.00.00-build202512111200-l64xl228.run -a -q -t $PWD/fjs-flm7

Options

Table 1 shows the options relating to installation.

Table 1. UNIX install options
Install option Description
-a or --accept Bypass the display and the prompt for acceptance of the license agreement. Using the -a option indicates that you have read and accepted the End User License Agreement, located on the Four Js website at https://4js.com/end-user-license-agreements/.
-c or --check Check integrity of the archive and of bzip2/tar binaries embedded in this program.

-f backup|overwrite|remove or

--force backup|overwrite|remove

Specify what happens if the installation directory already exists:
  • backup: Back up the installation directory.
  • overwrite: Overwrite installation file.
  • remove: Delete installation directory before installing.
-k or --keep Do not delete working directory when done.
-l or --list Print the list of files in the archive.
-h or --help Display help about all possible options.
-i or --install Install the product.
Important:

This option is not recommended. It is included only for backward compatibility.

-s license or

--show license

Display the license of the product.
-n or --nocheck Escape the checksum test on the archive included in the installer.
-q or --quiet Silent mode with no UI. If -q is not specified, the interactive installer is used.
-r or --root Allow the 'root' user to install the package.
Important:

Installing as root is not recommended. It is recommended that you install while logged in as a non-root user.

-V or --version Show the version number.

-t install_dir or

--target install_dir

Install the product in the specified target directory. If this option is not specified, the default installation is used.

-w working_dir or

--work working_dir

Specify the working directory. By default, a temporary directory is created in $TMPDIR or /tmp.
-x or --extract Extract the contents of this program, but do not run fglgws-installer. This option implies --keep.

Installing and starting the daemon

The installation wizard installs the Four Js License Manager daemon.

Once installed, start the daemon from the command line; for details, go to Starting Four Js License Manager.

If using systemd to manage services, you can configure the license manager systemd service template to automatically start the daemon on boot, and to execute systemctl commands to start and stop the service. For more information on how to set this up, go to Systemd service template.

Systemd service template

Using the license manager systemd template allows you to run commands to stop and start the service using systemctl in Linux systems.

A template for FLM systemd is provided in FLMDIR/systemd/flm.service

Warning:

The systemd feature is available on Linux only.

The template contains the service configuration options that allow you to control the FLM service via Linux systemctl commands. It contains the basic commands to use the service; you may want to adapt the template to suit your needs. For more information on working with systemd, see the systemd documentation.
An example of the systemd template, flm.service, is shown in the sample.
 Installed in the global system ..
#
# /lib/systemd/system/flm.service
# systemctl daemon-reload
# systemctl stop flm.service
# systemctl start flm.service
# systemctl status flm.service
#
# Installed in user space
#
# Comment User and Group entries in Service
#
# ~/.config/systemd/user/flm.service
#
# systemctl --user daemon-reload
# systemctl --user stop flm.service
# systemctl --user start flm.service
# systemctl --user status flm.service
#
# If selinux is enabled, the following commands may be
# needed:
#
# semanage fcontext -a -t bin_t ${FLMDIR}/bin/flmprg
# restorecon -R -v ${FLMDIR}/bin/flmprg

[Unit]
Description=FourJs License Manager 7.00.01-202511201357
After=network.target nss-lookup.target
Documentation=https://4js.com/online_documentation/fjs-flm-manual-html

[Service]
Type=exec
Environment="FLMDIR=#!FLMDIR!#"
ExecSearchPath=#!FLMDIR!#/bin
ExecStartPre=flmprg -a env
ExecStart=flmprg -D
ExecReload=flmprg --service-restart
ExecStop=flmprg --service-stop
KillMode=mixed
Restart=on-abort
SuccessExitStatus=SIGTERM 0
PrivateTmp=true
User=fourjs
Group=fourjs

[Install]
WantedBy=multi-user.target
Where:
  • Examples of the systemctl commands you can use to manage the service are included in the comments at the top of the file.
  • The configuration items are in the [Unit], [Service], and [Install] sections.
  • The ExecSearchPath parameter specifies the path to the FLM for the service. It affects where systemd looks for the commands specified in ExecStart, ExecStop, and so one. This parameter was introduced in systemd version 250. If your version of systemd is earlier (run systemctl --version), you will need to include the complete path to the flmprg commands in the Exec* parameters.
  • The User= and Group= directives in the [Service] section let you specify which user and group should run the FLM process. These options are supported only for services installed in the global system directory (for example, /lib/systemd/system/flm.service) and managed with systemctl. They are not supported for services installed in user space (for example, ~/.config/systemd/user/flm.service) and managed with systemctl --user.

Usage

There are different ways of using the template depending on your requirements. You can either set the service as a global service or as a user service. For this example we set it as a global system service:
  • Copy the FLMDIR/systemd/flm.service service file to the /lib/systemd/system directory.
  • Reload the systemd configuration:
    $ systemctl daemon-reload
  • Now you should be able to start, stop, and check the FLM service status.
    $ systemctl start flm.service
    $ systemctl stop flm.service
    $ systemctl status flm.service
  • To configure the service to start automatically on boot, you need to enable it:
    $ systemctl enable flm.service
  • To check the service logs, run:
    $ journalctl -u flm.service

SELinux considerations for systemd services

If Security-Enhanced Linux (SELinux) is enabled and enforcing on your Linux system, ensure the service unit and its executable files have the correct SELinux context. Incorrect contexts can prevent the service from starting. These commands are also included as comments in the systemd service template file provided:
  1. Restore default SELinux context:
    restorecon -Rv ${FLMDIR}/bin/flmprg
  2. Manage custom contexts if needed:
    semanage fcontext -a -t bin_t ${FLMDIR}/bin/flmprg
Other useful checks:
  1. Check SELinux status:
    getenforce
  2. Review logs for SELinux denials:
    journalctl -xe
For more details, see the SELinux documentation or use man selinux

Install Four Js License Manager on Windows platforms

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 https://4js.com/end-user-license-agreements/.

  1. Choose a directory where Four Js License Manager will be installed, such as c:\fjs\flm.
  2. Log in as a user with permission to write to the chosen directory.
  3. Copy the self-extractable file into a temporary directory.
    fjs-flm-6.xx.xx-buildYYYYMMDDhhmm-osident.exe

    Example:

    fjs-flm-7.00.00-build202512111200-w64v142.exe
  4. Doubleclick the file to launch it, or right-click on the filename and select Run as administrator.
    Important: The Windows installer must be run by a user as an administrator, which means executing it in elevated mode. When prompted by UAC, you will need to validate the action to complete the installation.
  5. Follow the instructions displayed.
    As part of the wizard, you are asked whether to install as a service. If you elect to install as a service, it is installed and set to Manual start. To have the service restart automatically on reboot, you must edit the Startup Type and change to Automatic or Automatic Delayed.

When installation is complete, see Four Js License Manager User Guide for configuration information and instructions.

Install Four Js License Manager on Windows in silent mode

Install Four Js License Manager on Windows platforms using the MSI installer.

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 https://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:

Important: The Windows installer must be run by a user as an administrator, which means executing it in elevated mode. When prompted by UAC, you will need to validate the action to complete the installation.
fjs-product-version-build-osident.exe /x

For example:

fjs-flm-7.00.00-build202512111200-w64v142.exe /x

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

Options

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

Table 2. 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 3. Arguments for the msiexec installer
Argument Description
PRODUCTDIR=your_flmdir_path The path where FLM will be installed. It is an alias of FLMDIR variable.
STARTMENUFOLDER=your_startmenufolder_path Customize the location for the shortcuts in the startmenu. For example, "fjs\flm".
FORCEREMOVEPRODUCTDIR=YES On uninstall, force the removal of the PRODUCTDIR directory, even if it is not empty. For any value other than YES, keep the files in the PRODUCTDIR location. Default value: "".
FORCEINNONEMPTY=YES Force the installation of a folder, even if it is not empty. For any value other than YES, do not allow installation into a non-empty folder. Default value: "".
SERVICECONFIG=[NotToInstall|ServiceInstall|ServiceStart] Specify whether the service is installed.
  • NotToInstall (default): Do not install the service.
  • ServiceInstall: Install the service.
  • ServiceStart: Install the service and start it.
Note:

Quotes are only required around the argument value when a space character is in the value string.

Installing and starting the service (Windows only)

The installation wizard gives you the option of installing the Four Js License Manager as a service.

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 https://4js.com/end-user-license-agreements/.

If you elected NOT to install as a service during the initial installation, you can execute the following command (from the License Manager Workplace Window) to install it as a service:
flmprg --service-install

If you attempt to start the service from the command line and the service is not yet installed, it will first install the service, and then start the service. For details about starting the service, go to Starting Four Js License Manager.

Important:

On Windows you must run the command as administrator, it is not enough to simply have administrator permissions.

Install Four Js License Manager on macOS

Before you begin

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 https://4js.com/end-user-license-agreements/.

You need a macOS and an user account which has administrator access level.

Download the installation package for the macOS .

Follow these instructions to install the Four Js License Manager (FLM) on macOS.

  1. Determine the directory where you will install the product.
    The wizard will eventually suggest /opt/fourjs/flm. If you plan to use this default, ensure you have write permission to this directory.
  2. Log in as a user with permission to write to the directory in which you plan to install this product.
  3. Copy the self-extractable file into a temporary directory.
  4. From a command prompt, run the self-extractable shell script:
    sh fjs-flm-6.xx.xx-buildYYYYMMDDhhmm-osident.run

    Example:

    sh fjs-flm-7.00.00-build202512111200-m64x1200.run
  5. Follow the instructions displayed.
    Tip:

    After you have read the licensing agreement, press "q" to return to the instructions and prompts.

When installation is complete, see Four Js License Manager User Guide for configuration information and instructions.

Install Four Js License Manager on macOS platforms in silent mode

Install Four Js License Manager silently on macOS platforms.

To start the installation, type the following:

sh fjs-flm-version-buildYYYYMMDDhhmm-osident.run -a -q -t install_dir

For example:

sh fjs-flm-7.00.00-build202512111200-m64x1200.run -a -q -t $PWD/fjs-flm7

Options

Table 4 shows the options relating to installation.

Table 4. Install options
Install option Description
-a or --accept Bypass the display and the prompt for acceptance of the license agreement. Using the -a option indicates that you have read and accepted the End User License Agreement, located on the Four Js website at https://4js.com/end-user-license-agreements/.
-c or --check Check integrity of the archive and of bzip2/tar binaries embedded in this program.

-f backup|overwrite|remove or

--force backup|overwrite|remove

Specify what happens if the installation directory already exists:
  • backup: Back up the installation directory.
  • overwrite: Overwrite installation file.
  • remove: Delete installation directory before installing.
-k or --keep Do not delete working directory when done.
-l or --list Print the list of files in the archive.
-h or --help Display help about all possible options.
-i or --install Install the product.
Important:

This option is not recommended. It is included only for backward compatibility.

-s license or

--show license

Display the license of the product.
-n or --nocheck Escape the checksum test on the archive included in the installer.
-q or --quiet Silent mode with no UI. If -q is not specified, the interactive installer is used.
-r or --root Allow the 'root' user to install the package.
Important:

Installing as root is not recommended. It is recommended that you install while logged in as a non-root user.

-V or --version Show the version number.

-t install_dir or

--target install_dir

Install the product in the specified target directory. If this option is not specified, the default installation is used.

-w working_dir or

--work working_dir

Specify the working directory. By default, a temporary directory is created in $TMPDIR or /tmp.
-x or --extract Extract the contents of this program, but do not run fglgws-installer. This option implies --keep.

Installing and starting the daemon

The installation wizard installs the Four Js License Manager daemon.

Once installed, start the daemon from the command line; for details, go to Starting Four Js License Manager.