Passing Parameters as a JSON Structure

Alternatively, instead of running the msiexec command directly from the console, you can define all the installation and configuration parameters in a JSON file and then pass it as an argument.

Note

This section demonstrates how to use this method to install Thinfinity Workspace in All Components mode.

Prerequisites

For this silent installation method, a .bat file is required. This batch file will serve as an executable that runs the msiexec command and passes the JSON file as an argument. Therefore, it is essential to have this JSON file available — typically named something like Automation_[componentName].json, for example, Automation_Gateway.json.

To simplify path handling, the installer of the target product should be placed in the same directory as the batch file and the JSON file.

Installing Thinfinity Workspace in All components mode

1

Create the Batch File

This is an example of the content for the batch file that must be run with the msiexec command:

@echo off

set CFG_FILE=Automation_workspace.json
set CMDLINE=/setinstance ""%CFG_FILE%""

msiexec /i Thinfinity_Workspace_v8.0.1.109_Setup_x64.msi /q /l*v ServerWS.log CMDLINE="%CMDLINE%"
2

Create the JSON File

This is an example of the content for the JSON file that includes the custom parameters for the Thinfinity Workspace configuration.

Each tab in Thinfinity Configuration Manager represents an array within the JSON configuration file, and each displayed field corresponds to a key-value pair. One advantage of the system is that if an error is detected in any tag or value, Thinfinity® Workspace will display a message indicating that it could not be interpreted correctly.

{
    "thinfinity": {
        "binding": [{
        "https": true,
        "ip": "",
        "port": 9443,
        "hostName": "",
        "certificateStore": "MY",
        "thumbprint": "cb-d8-af-9f-33-9a-7c-f7-f9-2f-ab-02-5d-99-e5-86-6d-75-4a-66",
        "redirectUrl": "",
        "redirectCode": 302
        }],
        "networkId": "MyNet",
        "apiKey": "1B7FB733-4221-49D6-AFFE-D13652149775",
        "protection": {
            "bruteForce": {
            "enabled": true,
            "maxAttempts": 3,
            "minutesToReset": 10
            },
            "whiteList": [
                "192.168.1."
            ],
            "blackList": [
                "192.168.2."
            ]
        }
    }
}

3

Run the .bat File

Double-click the file or run it from your preferred console. Once finished, Thinfinity Workspace will be installed, and a log file named ServerWS.log will be available in the same directory.

Additionally, if an error occurs during installation or configuration loading, an error file named thinfinity.config.err is automatically generated in C:\Windows\System32 This file can be used for troubleshooting.

Last updated

Was this helpful?