Expert install guide
Quick guide for experts installing FairCom products
This page describes how to download a FairCom product.
This section is a short installation process that takes approximately five minutes depending on the download speed of your Internet connection.
The FairCom server can be installed from a zip file or from a Microsoft Installer. The zip file is ideal for development environments that want to embed the FairCom server into an application or run multiple instances of the server on the same computer. The Windows Installer automatically installs dependencies and runs the FairCom server as a Windows Service.
Download the FairCom server as a
.zip
file.Unzip the download 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.
Find the
<faircom>
subfolder named something likeFairCom.64bit.v4.5.1.145
.Inside the
<faircom>
folder, open theserver
folder.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 runs.
Download the FairCom server as a Windows Installer package.
Run the installer package.
Use a
cd
command to move into the installation folder where you unzipped the FairCom product.cd c:\faircom\FairCom-Edge.windows.64bit.v4.0.0.45
Run
setup.bat
to install or remove features:Note
For more information on FairComConfig.exe , see Configure installed features using
FairComConfig.exe
.Select specific features to install by running the
setup
command.Install all features by running the
setup all
command.Remove all features by running the
setup remove
command.
Follow the prompts on the installation window to finish the installation.
Note
FairComConfig.exe
installs theMicrosoft Visual C redistributable
file. However, if it is already installed, a Setup Failed error message will appear that a newer version of this file is already installed. This message can be ignored and the installation can finish.
This procedure explains how to do a silent, headless installation of a FairCom product on Windows
Download the FairCom server as a
.zip
file.Unzip the downloaded file into another folder (such as
c:\faircom\
) to create a subfolder (such asFairCom-Edge.windows.64bit.v4.0.0.45
).Modify the
sc create
command.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"
Update the
binpath
value in thesc create
command to the path where FairCom Edge is installed.binPath= "C:\FairCom\FairCom-Edge.windows.64bit.v4.0.0.45\server\faircom.exe"
If
"FairCom-EDGE"
does not match the product installed, update it to match.For FairCom MQ, use
"FairCom-MQ"
.For FairCom DB, use
"FairCom-DB"
.For FairCom RTG, use
"ctreeRTG"
.
If necessary, update the
start
value to change how the service starts.auto
This causes the service to automatically start when Windows starts. This is the recommended setting for
start
.delayed-auto
This causes the service to automatically start when Windows starts but with a delay. There is rarely a reason to delay the start of a FairCom product.
demand
This causes the service to need a manual start. It will not start automatically. This is recommended for a non-production environment when you want to have control over when the FairCom product runs.
disabled
This prevents the service from starting altogether. There is no reason to use this setting.
If necessary, update the
error
value to change how Windows behaves at startup if the service fails.normal
This causes Windows to start normally when the service fails to start. Windows shows the logged-in user a dialog box that explains why the service failed to start. This is the typical value for
error
.severe
When the service fails to start, this causes Windows to restart using the last known good configuration. This value can be used in a mission-critical environment when the computer only runs the FairCom product.
critical
When the service fails to start, this causes Windows to restart using the last known good configuration. 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
This 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 is not running.
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 (see https://en.wikipedia.org/wiki/Windows_service).
Important
All sc
commands must be run using an administrator account meaning you must open the Command Prompt
with Run as administrator.
The sc create
command creates a Windows service to run FairCom Edge (see 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"
This command gets the status of FairCom Edge as a Windows service.
sc queryex fairCom-edge
This command starts FairCom Edge as a Windows service.
sc start fairCom-edge
This command stops FairCom Edge as a Windows service.
sc stop fairCom-edge
This command removes FairCom Edge as a Windows service.
sc delete fairCom-edge
This command disables the Windows service so that it does not run when Windows boots.
sc config fairCom-edge start=disabled
This command automatically starts the Windows service when the computer restarts.
sc config fairCom-edge start=auto
This command delays the start the Windows service when the computer restarts.
sc config fairCom-edge start=delayed-auto
This command manually starts the Windows service rather than have it automatically start when the computer restarts.
sc config fairCom-edge start=demand
This command allows you to 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 has Windows show the user a dialog box explaining that the service failed to start.
sc config faircom-edge error=normal
This section provides a simple script that installs a FairCom product as a Windows service. It must be run as an administrator.
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 FairCom Edge.
Note
This script assumes you have already downloaded and unzipped the FairCom product. It also stops and removes the service in case 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
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 ports as a running instance will cause the second instance to exit with errors.
Manage any running instances of FairCom in 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
.
Navigate into the newly-installed server directory.
Run the faircom executable or run the startserver script.
Navigate into the newly-installed server directory.
Run the stopserver script.
Navigate into the newly-installed server directory.
Run the startserver script
FairCom recommends using systemd, see systemd(1) — Linux manual page.
Also see, 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 ports as a running instance will cause the second instance to exit with errors.
Run the command: ps -ef | grep faircom.
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
.
Navigate into the newly-installed server directory through
FairCom-<product>.osx.<version>/Contents/Home/Server
.Run the faircom executable or run the startserver script.
Navigate into the newly-installed server directory.
Run the stopserver script.
Navigate into the newly-installed server directory.
Run the startserver script.
FairCom recommends using systemd command.
Also see, 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 ports as a running instance will cause the second instance to exit with errors.
Run the command: -ef | grep faircom.
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.
Alternatively, run the Activity Monitor application and search for
faircom
.