Skip to main content

Expert install instructions

Quick install instructions for experienced FairCom users

This section shows a quick installation process for those familiar with FairCom who do not need extensive, detailed instructions. It only takes a few minutes to complete.

This install guide is designed for clients familiar with FairCom products

install guide
expert guide
expert install
advanced guide
FairCom products

After the FairCom product is downloaded, the server can be installed using the downloaded compressed (zip) file or the Microsoft Installer file.

The compressed zip file is ideal for embedding the FairCom server into an application or running multiple instances of the server on the same computer.

The Microsoft Installer automatically installs dependencies and runs the FairCom server as a Windows Service.

  1. Download the FairCom server as a .zip file.

  2. Unzip the downloaded file into any folder — for example, c:\faircom\.

    Tip

    FairCom recommends using 7-Zip because other zip utilities have limitations on the number of files and paths that they can unzip.

  3. Find the <faircom> subfolder named something like FairCom.64bit.v4.5.1.145.

  4. Inside the <faircom> folder, open the server folder.

  5. Run faircom.exe.

    Important

    The evaluation version of the product times out after three hours and shuts down the server. Therefore, the server needs to be restarted every three hours.

    Note

    Each time you restart your computer, you need to run faircom.exe to load the server.

    This is ideal for an evaluation environment where you want full control over the server.

    For a production environment, consider using the Windows installer to install FairCom as a Windows service that automatically loads the FairCom server each time the computer restarts.

This procedure installs the FairCom server as a service that runs automatically when Windows starts.

  1. Download the FairCom server as a Windows Installer package.

  2. Run the installer package.

Note

The setup.bat file runs FairComConfig.exe. For more information on FairComConfig.exe, see Configure installed features using FairComConfig.exe.

  1. In a command prompt, go to the installation folder where you unzipped the FairCom product.

    cd c:\faircom\FairCom-Edge.windows.64bit.v4.0.0.45

    Or open the installation folder in Windows Explorer.

  2. Run setup.bat to:

    • Select specific features to install.

    • Install all features.

    • Remove all features.

  3. Follow the prompts on the installation window to finish the installation.

    Note

    FairComConfig.exe installs the Microsoft Visual C redistributable file. However, if it is already installed, a Setup Failed error message will appear stating that a newer version of this file is already installed. This message can be ignored, and the installation can finish.

Follow these steps to do a silent, headless installation of a FairCom product on Windows.

  1. Download the FairCom server as a .zip file.

  2. Unzip the downloaded file into another folder (such as c:\faircom\) to create a subfolder (such as FairCom-Edge.windows.64bit.v4.0.0.45).

  3. Modify the sc create command as follows.

    sc  create  "FairCom-EDGE"  binPath= "C:\FairCom\FairCom-Edge.windows.64bit.v4.0.0.45\server\faircom.exe"  start= auto  error=normal  DisplayName= "FairCom EDGE Server"
    1. Update the binpath value in the sc create command to the path where is installed.

      binPath= "C:\FairCom\FairCom-Edge.windows.64bit.v4.0.0.45\server\faircom.exe"
    2. If "FairCom-EDGE" does not match the installed product, update it to match.

      • For , use "FairCom-MQ".

      • For , use "FairCom-DB".

      • For , use "ctreeRTG".

    3. If necessary, update the start value to change how the service starts.

      • auto will automatically start the service when Windows starts. This is the recommended setting.

      • delayed-auto will automatically start the service when Windows starts but with a delay. There is rarely a reason to delay the start of a FairCom product.

      • demand requires that the service be started manually. It will not start automatically. This is recommended for a non-production environment when you want to control when the FairCom product runs.

      • disabled prevents the service from starting altogether. There is rarely a reason to use this setting.

    4. If necessary, update the error value to change how Windows behaves at startup if the service fails.

      • normal causes Windows to start normally when the service fails to start. When this happens, Windows shows the logged-in user a dialog box explaining why the service failed to start. This is the typical value for error.

      • severe causes Windows to restart using the last known good configuration when the service fails to start. This value can be used in a mission-critical environment when the computer only runs the FairCom product.

      • critical causes Windows to restart using the last known good configuration when the service fails to start. If the service fails to start again, Windows stops the bootup process. This value is not recommended for mission-critical environments since it requires administrative intervention.

      • ignore causes Windows to ignore the service's failure to start. This setting is not typically recommended because there is no indication that the FairCom product did not start.

  4. Run the modified sc create command.

This section provides commands for using sc.exe to create, remove, start, stop, query, and configure any Windows service.

Important

All sc commands must be run using an administrator account, meaning you must open the Command Prompt with Run as administrator.

Create a Windows service to run (See also Silently install a Windows service).

Note

A space is required after binPath=start=, and DisplayName=.

sc  create  "FairCom-EDGE"  binPath= "C:\FairCom\FairCom-Edge.windows.64bit.v4.0.0.45\server\faircom.exe"  start= auto  error=normal  DisplayName= "FairCom EDGE Server"

Get the status of a Windows service.

sc queryex fairCom-edge

Start as a Windows service.

sc start fairCom-edge

Stop as a Windows service.

sc stop fairCom-edge

Remove as a Windows service.

sc delete fairCom-edge

Disable as a Windows service so that it does not run when Windows boots.

sc config fairCom-edge start=disabled

Automatically start as a Windows service when the computer restarts.

sc config fairCom-edge start=auto

Delay starting the as a Windows service when the computer restarts.

sc config fairCom-edge start=delayed-auto

Manually start the as a Windows service rather than have it automatically start when the computer restarts.

sc config fairCom-edge start=demand

Change the Windows service description.

sc description fairCom-edge "FairCom Edge New Description"

When the Windows service fails to start during a computer restart, this command automatically restarts the computer using the last known good configuration.

sc config faircom-edge error=severe

When the Windows service fails to start during a computer restart, this command causes Windows to show the user a dialog box explaining the failure.

sc config faircom-edge error=normal

Provides a simple script that installs a FairCom product as a Windows service. It must be run as an administrator.

Before running the script:
  • Change the binPath to the location of the FairCom product on disk.

  • Change the name and description of the service if the product is not .

Note

  • This script assumes you have already downloaded and unzipped the FairCom product. It also stops and removes the service if it is already installed. This is useful when you need to remove a previous version of the product. It then creates a new service and starts it.

  • The service name is case-insensitive.

Important

If you use a different name for the service, be sure to change the service name in the script.

sc stop fairCom-edge
sc delete fairCom-edge


sc create  "FairCom-EDGE"  binPath= "C:\FairCom\FairCom-Edge.windows.64bit.v4.0.0.45\server\faircom.exe"  start= auto  error=normal  DisplayName= "FairCom EDGE Server"
sc start fairCom-edge
  1. You can run multiple instances of FairCom on the same computer by configuring them to use different ports.

    Note

    Attempting to run a second instance of FairCom with the same port as a running instance will cause the second instance to exit with errors.

  2. Manage any running instances of FairCom in Windows Task Manager.

The FairCom server is a .tar file that you expand into a target folder on your Linux server. The target folder should be located somewhere your user has full permissions, such as user.

  1. Navigate to the newly installed server directory.

  2. Run the faircom executable or run the startserver script.

  1. Navigate to the newly installed server directory.

  2. Run the stopserver script.

  1. Navigate to the newly installed server directory.

  2. Run the startserver script

You can run multiple instances of FairCom on the same computer by configuring them to use different ports.

Note

Attempting to run a second instance of FairCom with the same port as a running instance will cause the second instance to exit with errors.

Check for running instances of FairCom
  1. Run the command: ps -ef | grep faircom.

  2. Observe the response.

    • Two lines of code indicate there is a FairCom server running.

    • One line of code indicates there is no FairCom server running.

The FairCom server is located within a .tar file that you expand into a target folder on your Mac. The target folder should be located somewhere your user has full permissions, such as Documents.

  1. Navigate into the newly-installed server directory through FairCom-<product>.osx.<version>/Contents/Home/Server.

  2. Run the faircom executable or run the startserver script.

  1. Navigate to the newly installed server directory.

  2. Run the stopserver script.

  1. Navigate to the newly installed server directory.

  2. Run the startserver script.

  • FairCom recommends using systemd command.

  • See also, Script to start and stop the server.

You can run multiple instances of FairCom on the same computer by configuring them to use different ports.

Note

Attempting to run a second instance of FairCom with the same port as a running instance will cause the second instance to exit with errors.

Check for running instances of FairCom
  1. Run the command: -ef | grep faircom.

  2. Observe the response.

    • Two lines of code indicate there is a FairCom server running.

    • One line of code indicates there is no FairCom server running.

  3. Alternatively, run the Activity Monitor application and search for faircom.