Unattended installation on Windows
In this topic: |
To run an unattended installation of Klocwork, enter the following command:
start /WAIT <installer.exe> /w /S [/L<langid>] /v"/qn INSTALLDIR=<install_directory> /log <install_log> PROPERTY=VALUE PROPERTY1=VALUE1..."
where:
- <installer.exe> is the name of the installation package you want to use, for example, kw-server-installer.23.2.0.353.win64.exe
- /w parameter will cause the parent process to wait for the installation process. See the InstallShield help library for more information on this.The %errorlevel% system variable can be used to check for installation success.
- /L<langid> allows you to change the default language for the installation package. By default, if your system locale is Japanese, the installation package will run in Japanese. Otherwise, it will run in English. To specify Japanese, use /L1041.
- /v passes subsequent parameters directly to the MSI engine. The entire string after /v must be surrounded by quotation marks.
- /qn runs the installer in unattended mode
- <install_directory> is the absolute path to the directory in which you want to install Klocwork. The default is the root directory of the local drive with the most available space. %LOCAL_DRIVE%\Klocwork\<package>, where <package> can be Server or one of the desktop packages. Note that if the chosen directory is not empty, you will not be able to continue with the installation.
- PROPERTY=VALUE is any of the Allowable PROPERTY=VALUE pairs for unattended installation
Surround any value that contains spaces with escaped quotation marks (\").
Example
start /WAIT kw-server-installer.23.2.0.353.win64.exe /w /S /v"/qn INSTALLDIR=\"C:\Klocwork\Server 2023.2\" /log C:\server.log"
Installing a desktop analysis tool
You can install the desktop analysis tools using unattended installation, however you must first download the desktop tools package from https://library.roguewave.com/display/SUPPORT/Klocwork+-+Product+Downloads (see Desktop Tools Packages) and unzip them into a folder on your local machine. The desktop tools package contains installation binaries for each of the desktop tools, organized by platform. For more information see, Downloading and deploying the desktop analysis plug-ins.
Once unzipped and placed into a directory on your local computer, run the unattended installation from the command-line, specifying the file name of the installer for the desktop tool that you want to install.
Installing specific components in unattended mode
To install one or more specific Klocwork components (for example, to install the database server) in an unattended installation, include ADDLOCAL=<component_arguments> in your command line, where <component_arguments> is one or more arguments from the following tables. Multiple arguments must be separated by commas, for example, ADDLOCAL=BuildTools,JRE.
When running an unattended installation, you must always install the JRE component in order for the other components to work.
To install this component (feature) | Enter the argument |
---|---|
Java Runtime Environment | JRE |
License Server (Server installer package) | LicenseServer |
Klocwork Server (Server installer package) | KlocworkServer |
Distributed analysis server (Distributed build package) | DistributedAnalysisServer |
Distributed analysis agent (Distributed build package) | DistributedAnalysisAgent |
Allowable PROPERTY=VALUE pairs for unattended installation
Server package
PROPERTY=VALUE | Description |
---|---|
ADDLOCAL=<component_list> | Installs specific components only. See tables in previous section for allowable values for this property. |
INSTALLDIR=<install_directory> | Install into the directory you specify. Default: current working directory. Note that if the chosen directory is not empty, you will not be able to continue with the installation. |
PROJECTS_ROOT=<projects_root_directory> | Set up a projects_root directory in the directory you specify. The default is <Server_install>/projects_root. Specify the complete path. Important: If you are upgrading, specify the old projects_root directory that you want to migrate. |
LICENSE_HOST=<host_name> | Specify License Server host name. Default: localhost |
LICENSE_PORT=<port_number> | Specify License Server port number. Default: 27000 |
MYSQL_HOST=<host_name> | Specify Database Server host name. Default: localhost |
MYSQL_PORT=<port_number> | Specify Database Server port number. Default: 3306 |
KWSERVER_HOST=<host_name> | Specify Klocwork Server host name. Default: localhost |
KWSERVER_PORT=<port_number> | Specify Klocwork Server port number. Default: 8080 |
The Server Installer also supports the ALLUSERS property. For details, see this MSDN article.
Desktop plugins
Name | Description |
---|---|
ADDLOCAL=<component_arguments> | Installs specific components only. See tables in previous section for allowable values for this property. |
CREATE_SHORTCUTS=\"\" | Suppress creation of desktop shortcuts. Default: 1 (create shortcuts) |
IDEAINSTALLDIR= <directory> | The directory where IntelliJ IDEA is installed |
INSTALLDIR=<directory> | Install into the directory you specify. Default: current working directory. Note that if the chosen directory is not empty, you will not be able to continue with the installation. |
LICENSE_HOST=<host_name> | Use License Server running at <host_name> |
LICENSE_PORT=<port_number> | Use License Server running at <port_number> |
KWSERVER_HOST=<host_name> | Use Klocwork Server running at <host_name> |
KWSERVER_PORT=<port_number> | Use Klocwork Server running at <port_number> |