How to install Leapwork using the command line interface

How to install Leapwork using the command line interface

Introduction

A silent install is the installation of a software program that requires no user interaction. It is a convenient way to streamline the installation process of a desktop application; users can create a custom script using which silent installation of the Leapwork Agent can be performed on multiple machines at once.

Standard command for MSI installation is as follows:

msiexec.exe [MSI COMMAND] [MSI INSTALLER FILE PATH] [MSI COMMAND OPTIONS] [INSTALLER PACKAGE PARAMETERS]

For more information about MSI installation, see Microsoft Command-Line Option 1 and Microsoft Command-Line Option 2.

Enterprise Installation

To install Enterprise version, use the following commands.

msiexec /i "C:\Leapwork_Release_x64_2022.2.700.msi" /qn /norestart /L*V "C:\logs\exampleSilent.log" API_ACCESS_KEY="yYjxcgMdT53ueZOc" LEAPWORK_AGENT_PORT="6777" LEAPWORK_CONTROLLER_PORT="9000" LEAPWORK_CONTROLLER_API_PORT="9001" LEAPWORK_MSSQL_ASSET_DB_NAME="AssetTest" LEAPWORK_MSSQL_REPORT_DB_NAME="ReportTest" LEAPWORK_MSSQL_CONNECTION_TYPE="StandardSecurity" LEAPWORK_MSSQL_INITIAL_CATALOG="master" LEAPWORK_MSSQL_INTEGRATED_SECURITY="SSPI" LEAPWORK_MSSQL_SERVER_ADDRESS="localhost" LEAPWORK_CONTROLLER_PASSWORD="admin" LEAPWORK_MSSQL_USER_NAME="username" LEAPWORK_MSSQL_PASSWORD="password" FORCE_SILENT_ENTERPRISE_INSTALL="true" ADDLOCAL="ControllerFeature,StudioFeature"

Platform Installation

To install Platform, use the following commands.

msiexec /i "C:\Leapwork_Release_x64_2023.1.71.msi" /qn /norestart /L*V"C:\logs\exampleSilent.log" LEAPWORK_CONTROLLER_PASSWORD="admin" LICENSE_KEY="9GNnrdWsiWZG+ZAtUlh2Daykr+H5vLzTeqXSsYXxKTSp6Q4MkkOQMT05txQ/7T1j6xNmIN2kAuYwCPXD6gJ0sYgtQiOda8YNhJEBavBI0/U=" FORCE_SILENT_PLATFORM_INSTALL="true" ADDLOCAL="ControllerFeature,StudioFeature"

Studio and Agent Installation

To install Studio and Agent, use the following commands.

msiexec.exe /i "C:\Share\LEAPWORK_Release_x64_2023.1.71.msi" /qn /norestart /l*V "C:\Share\log.txt" ADDLOCAL=StudioFeature,AgentFeature

Examples

Install command in CMD

Install

Install with logs

Install Agent and the Controller

Install Studio

Install with custom parameters

Uninstall command in CMD

Note: Windows 7 and Windows Server 2008 requires a restart after installation which can be done manually or by adding the restart command in your command line script.