Leapwork Silent Install - Commands breakup

Leapwork Silent Install - Commands breakup

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 like Leapwork Studio, Leapwork Controller, or the Leapwork Agent.

The Leapwork installer is based on MSI, and can be used from the command-line like this:

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

[INSTALLER PACKAGE PARAMETERS]: An optional list of the package parameters. It may contain a list of required "features" and other parameters like ports, shortcuts, paths &, etc. Any parameter's value should be quoted if it contains spaces.

List of features

Common Properties

Enterprise Properties

Silent install using the previous configuration from the registry

Examples

Example of download REQ file command in offline installation:

msiexec /i "C:\Users\UserName\Downloads\Leapwork_Experimental_x64_2024.1.850.msi" /qn /norestart /L*V "C:\Temp\msilog.log" LICENSE_KEY="XXXX-XXXX-XXXX-XXXX" GENERATE_REQ_FILE="C:\Temp\req"

Example of upload LIC file command in offline installation in trial version:

msiexec /i "C:\Users\UserName\Downloads\Leapwork_Experimental_x64_2024.1.850.msi" /qn /norestart /L*V "C:\Temp\msilog.log" LICENSE_KEY="XXXX-XXXX-XXXX-XXXX" UPLOAD_LIC_FILE="C:\Temp\lic\ls_activation.lic"

Example of upload LIC file command in offline installation in enterprise version:

msiexec /i "C:\Users\UserName\Downloads\Leapwork_Experimental_x64_2024.1.850.msi" /qn /norestart /L*V "C:\Temp\msilog.log" API_ACCESS_KEY="XXXXXXXXXXXXXXXX" LEAPWORK_AGENT_PORT="6777" LEAPWORK_CONTROLLER_PORT="9000" LEAPWORK_CONTROLLER_API_PORT="9001" LEAPWORK_MSSQL_ASSET_DB_NAME="Asset" LEAPWORK_MSSQL_REPORT_DB_NAME="Report" LEAPWORK_MSSQL_CONNECTION_TYPE="StandardSecurity" LEAPWORK_MSSQL_INITIAL_CATALOG="master" LEAPWORK_MSSQL_INTEGRATED_SECURITY="SSPI" LEAPWORK_MSSQL_SERVER_ADDRESS="WIN-19XX/SQL" LEAPWORK_CONTROLLER_PASSWORD="admin" LEAPWORK_MSSQL_USER_NAME="admin" LEAPWORK_MSSQL_PASSWORD="*****" LICENSE_KEY="XXXX-XXXX-XXXX-XXXX" UPLOAD_LIC_FILE="C:\Temp\Lic\ls_activation.lic"

Example of silent install command with logging and access key with all default values:

msiexec /i "C:\Users\localadmin\Downloads\LEAPWORK_Experimental_x64_2019.1.1265.msi" /qn /norestart /L*V "C:\Users\localadmin\Downloads\example.log" API_ACCESS_KEY="yYjxcgMdT53ueZOc"

Example of how to uninstall Leapwork in silent mode without user interaction:

msiexec /x "C:\Users\localadmin\Downloads\LEAPWORK_Experimental_x64_2019.1.1265.msi" /quiet /qn /norestart /L*V "C:\Users\localadmin\Downloads\example.log"

Notes

Windows 7 and Windows Server 2008 require a restart after installation, which can be done manually or by adding a restart command in your command line script.