Install Tricentis License Server via command prompt
This topic offers a step-by-step guide on how to install License Server using a command prompt for unattended installation.
Before you start
Make sure your machine has the required versions of the following software:
-
Microsoft® .NET Hosting Bundle (64-bit)
-
Microsoft® Visual C++ Redistributable package
-
Oracle Java Runtime Environment or OpenJDK
Then, set the system variable JAVA_HOME in your Java installation.
Follow the installation process
To install your license server via command prompt, follow these steps:
-
Copy the file Tricentis License Server<version number>.msi to a folder of your choice.
-
Open a command prompt and browse to the folder that contains the file Tricentis License Server<version number>.msi.
-
Enter the following command line: msiexec /passive /l <logfile name> /i "Tricentis License Server<version number>.msi" LIC_PASSWORD=<password>
-
Replace <logfile name> with the name you wish to set for your installation log file.
-
Replace <password> with the password of the new administrator user. The password must meet the following requirements:
-
At least 8 characters and up to 64 characters
-
At least one digit
-
At least one upper-case character
-
At least one lower-case character
-
At least one special character
-
No empty space
For more information on supported special characters, check out this Knowledge Base article (opens in new tab).
You don't need to specify a username. The administrator account you create during the License Server setup always has the username admin. You can create more administrator accounts after the setup with no username restrictions.
-
Specify installation parameters
You can specify installation parameters at the end of your command line with this syntax: <parameter name>=<parameter value>. For example: LIC_PASSWORD=My$Password1
Note the following:
-
You must include the parameter LIC_PASSWORD in your installation. All the other installation parameters are optional.
-
If the parameter value contains spaces, wrap it in double quotation marks. For example: LUS_DBPATH="D:\License Usage Tracking Data Storage\".
These are the available optional parameters:
|
Parameter |
Description |
|---|---|
|
TIMEOUT |
Defines a timeout for each installation step in milliseconds. If the installation step is not successful within this time frame, the system rolls it back. By default, the timeout is 300000 milliseconds. |
|
INSTALLDIR |
Specifies the installation directory for the Tricentis License Server. The default directory is C:\Program Files\TRICENTIS\Tricentis License Server. If you specify a different directory, the system creates the folder Tricentis License Server in this directory. |
|
LIC_SERVERMODE |
Specifies whether to install the license server in online or offline mode. These are the possible values:
By default, the license server is installed in online mode. |
|
LIC_PORT |
Specifies the port for the license server instance. By default, the port is 7070. |
|
LIC_TRUSTEDSTORAGEPATH |
Specifies the directory where you want to save the Trusted Storage. The path to this directory must not contain empty spaces. By default, the path is C:\Windows\ServiceProfiles\NetworkService\flexnetls. |
|
LUS_APIPORT |
Specifies the port to connect to the Tricentis License Usage Statistics service. By default, the port is 7071. |
|
LUS_DBPATH |
Specifies the directory where you want to save the Tricentis License Usage Statistics database and its configuration files. By default, the path is C:\Windows\ServiceProfiles\NetworkService\TRICENTIS\LicenseUsageStatistics. |
|
LUS_AGE |
The maximum allowed data age in days. The database deletes all data that is older than the specified value. The default value is 365. If you want the database to never delete your data, set it to 0. |
|
ADDLOCAL |
Specifies which feature to install. Possible feature names are:
The default License Server installation includes Tricentis License Usage Statistics. If you want to install only the Tricentis License Server use the parameter ADDLOCAL=LicenseServer |
You want to install the License Server version 7.0 using a command prompt, with the following specifications:
-
The name of your installation log file will be My_installation_report.
-
Your password is My$Password1
-
The timeout for each installation step is 30 minutes, that is 1800000 milliseconds.
-
The installation directory is C:\Program Files\My testing software\My favorite server.
-
The database will delete your data after 200 days.
-
The installation includes Tricentis License Usage Statistics.
So you use the command prompt msiexec /passive /l My_installation_report /i "Tricentis License Server 7.0.msi" LIC_PASSWORD=My$Password1 TIMEOUT=1800000 INSTALLDIR="C:\Program Files\My testing software\My favorite server" LUS_AGE=200
Note that you don't need to use the installation parameter ADDLOCAL since Tricentis License Usage Statistics is part of the installation by default.