Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Unattended installation on Windows

Unattended installation on Windows

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.18.1.0.353.windows.exe
  • /w parameter will cause the parent process to wait for the installation process. See the InstallShield help library for more information on this.
    Note: 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
Note: Surround any value that contains spaces with escaped quotation marks (\").

Example

start /WAIT kw-server-installer.18.1.0.353.windows.exe /w /S /v"/qn INSTALLDIR=\"D:\Klocwork\Server 2018.1\" /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://developer.klocwork.com/support/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. In the following example, the IntelliJ IDEA plug-in is installed into a custom directory.

Example

start /WAIT kw-idea-installer.windows.exe  /w /S /v"/qn INSTALLDIR=\"C:\kw\idea_plugin\" /log C:\idea_install.log"

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.

To install this component (feature) Enter the argument
License Server (Server installer package) LicenseServer
Klocwork Server (Server installer package) KlocworkServer
Administration and analysis management tools (Server installer package) BuildTools
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
Note: 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>