Install Tricentis Tosca in unattended mode

You can install Tricentis Tosca in one of the following ways:

This chapter explains how to install Tricentis Tosca in unattended mode.

An unattended installation is necessary in environments that use software for automated and centralized software distribution. These environments need setups that support unattended installation.

Prerequisites

Before you start the installation, ensure that you meet all requirements listed in chapter "Install Tricentis Tosca".

Perform an unattended installation

To perform an unattended installation, follow the steps below:

  1. Unzip the installation package.

  2. Go to the installation folder and enter the following command at the command line:

    "Tricentis Tosca14.0.exe" /s <MSI commands> /qn

    • /s specifies silent mode. Elements that require user interaction are not displayed.

    • /qn specifies that Windows Installer dialogs are not displayed during the installation.

    • Replace <MSI commands> with one or more of the commands in the list below.

MSI commands

The table below contains a list of MSI commands.

You can find more MSIEXEC commands in the Windows Installer Service documentation or display them by running the MSIEXEC.exe file in the command line. Or you can check out the attachments of this Tricentis Knowledge Base article.

For the MSI commands in the list below, please note the following:

  • If a path contains spaces, you have to enclose it with a backslash followed by quotation marks: \"<Path>\". For instance: \"C:\Temp\My directory\file.exe\".

  • All MSI commands except ADDLOCAL are commands to configure the features that you want to install. If you want to use the default configurations for these features, you do not have to specify them in the command line.

 

MSI command

Description

ADDLOCAL

Specifies which optional features to install.

Enter ADDLOCAL=<feature name> and replace <feature name> with one of the following:

  • TricentisTBox

  • TricentisClassic

  • DexAgent

  • ToscaBIDataTesting

  • Tosca_VisionAIEngine

You can enter multiple features, separated by comma (see Example 2 below).

If you don't use the ADDLOCAL command at all, all features are installed.

If you don't specify any features after the ADDLOCAL command, none of the optional features are installed.

DIAGNOSTICS

Enables or disables Tosca Diagnostics.

Use the parameter DIAGNOSTICS=1 to enable Tosca Diagnostics, and DIAGNOSTICS=0 to disable it.

Default: DIAGNOSTICS=1

ENABLE_TOSCA_DATAINTEGRITY

Enables or disables Tosca Data Integrity.

Use the parameter ENABLE_TOSCA_DATAINTEGRITY=1 to enable Tosca DI and ENABLE_TOSCA_DATAINTEGRITY=0 to disable it.

Default: ENABLE_TOSCA_DATAINTEGRITY=0

To use Tosca Data Integrity, you need licenses.

EXAMPLE_WORKSPACES

Installs example workspaces with tutorials.

Use the parameter EXAMPLE_WORKSPACES=1 to enable the installation of the example workspaces, and EXAMPLE_WORKSPACES=0 to disable it.

Default: EXAMPLE_WORKSPACES=1

INSTALLDIR

Specifies the installation path of Tricentis Tosca.
Default: C:\Program Files\TRICENTIS\Tosca Testsuite (32bit) or Windows: C:\Program Files (x86)\TRICENTIS\Tosca Testsuite (64bit)

MOBILE_TESTING

Installs Appium and AndroidSDK, which are necessary for mobile automation.

You must install Tricentis TBox for MOBILE_TESTING to work.

Use the parameter MOBILE_TESTING=1 to enable the installation of the mobile automation components, and MOBILE_TESTING=0 to disable it.

Default: MOBILE_TESTING=1

NETDRIVE

Installs the %TRICENTIS_ALLUSERS_APPDATA% directory on a network drive.

NETDRIVE sets the permissions for the folder %TRICENTIS_ALLUSERS_APPDATA%.

If you don't want to set any permissions on the %TRICENTIS_ALLUSERS_APPDATA% folder, set the NETDRIVE value to 1, i.e. NETDRIVE=1 .

Default: NETDRIVE=0

For more information, see chapter "%TRICENTIS_ALLUSERS_APPDATA%".

OCRDB

Installs an OCR Font Database that the Classic Powerbuilder/Win32 Engine uses.

You must install Tricentis Classic for OCRDB to work.

Use the parameter OCRDB=1 to enable the installation of the OCR Font Database, and OCRDB=0 to disable it.

Default: OCRDB=0

START_SERVICES

Starts TOSCAAutomationService by default when the Windows system service is installed.

If the security settings on your work station prevent services from starting, you can circumvent this by using START_SERVICES=0.

Default: START_SERVICES=1

TOSCA_PROJECTS

Specifies the path where projects are saved.

Default: C:\Tosca_Projects

TRICENTIS_ALLUSERS_APPDATA

Specifies the directory of user defined settings.

Default path: C:\ProgramData\TRICENTIS\Tosca Testsuite\7.0.0

Examples

Example 1

The following command installs all required and optional features. This setup is similar to the standard Tosca Commander installation via the installer:

"Tricentis Tosca14.0.exe" /s /qn

Example 2

The following command installs all required features, and the example workspaces, and the optional features Tricentis TBox and Appium. This setup is similar to the Distributed Execution Agent install via the installer:

"Tricentis Tosca14.0.exe" /s MOBILE_TESTING=1 EXAMPLE_WORKSPACES=1 ADDLOCAL=TricentisTBox,DexAgent /qn

Example 3

The following command installs only required features and no optional features, i.e. Tosca Commander with the example workspaces and Tricentis Licensing:

"Tricentis Tosca14.0.exe" /s EXAMPLE_WORKSPACES=1 ADDLOCAL /qn

Example 4

The following command installs all required features and Tricentis Classic with OCRDB as an optional feature:

"Tricentis Tosca14.0.exe" /s OCRDB=1 ADDLOCAL=TricentisClassic /qn

Example 5

The following command installs all required and optional features to a defined directory:

"Tricentis Tosca14.0.exe" /s INSTALLDIR="D:\Tricentis Tosca" /qn

View installation logs

Once installation is complete, you can check your logs in the %TEMP% folder.

Uninstall in unattended mode

You can also uninstall Tricentis Tosca without user interaction.

To uninstall in unattended mode, enter the following command at the command line: "Tricentis Tosca14.0.exe" /uninstall /quiet.

  • /uninstall triggers the deinstallation.

  • /quiet specifies that you want to perform the uninstall process in silent mode.