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, user can create custom script using which silent installation of LEAPWORK Agent can be performed on multiple machine at once.
Standard command for MSI installation is as follows:
msiexec.exe [MSI COMMAND] [MSI INSTALLER FILE PATH] [MSI COMMAND OPTIONS] [INSTALLER PACKAGE PARAMETERS]
- [MSI COMMAND]
- /i -- installation;
- /u -- uninstallation.
- [MSI INSTALLER FILE PATH]:
- a (quoted if contains spaces) path to the installer file;
- [MSI COMMAND OPTIONS]
- /qn -- queit/no UI installation;
- /norestart -- no restart;
- /forcerestart -- forced restart;
- /l*v -- enables verbose logging;
- [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 contains spaces.
- List of features
- AgentFeature -- the agent;
- ControllerFeature -- the controller;
- StudioFeature -- the studio.
- Properties
- ADDLOCAL -- a comma separated list of features to be installed. Default: all features;
- LEAPWORK_AGENT_PORT -- a TCP port to be used by the Agent. Possible values: any valid TCP port. Default: 6777;
- LEAPWORK_AGENT_FIREWALLEXCEPTION -- indicates whether to create a rule for the Agent's port in the firewall. Possible values: true/false. Default: true;
- LEAPWORK_AGENT_PASSWORD -- a password that secures connection to the Agent. Possible values: any string. Default: empty string;
- LEAPWORK_CONTROLLER_PORT -- a TCP port to be used by the Controller. Possible values: any valid TCP port. Default 9000.
- LEAPWORK_CONTROLLER_API_PORT – a TCP port for Public REST API endpoints. Possible values: any valid TCP port. Default 9001.
- LEAPWORK_CONTROLLER_PASSWORD – initial password for LEAPWORK administrator by default called as “admin”.
- LEAPWORK_CONTROLLER_FIREWALLEXCEPTION -- indicates whether to create a rule for the Controller's port in the firewall. Possible values: true/false. Default: true;
- LEAPWORK_ASSETS_DIR -- a path to a folder where all assets will be stored. Possible values: string, any valid path. Default: C:\Program Files\LEAPWORK\Assets\;
- LEAPWORK_STUDIO_SHORTCUT -- indicates whether to create shortcuts for the Studio on the desktop and in the Start menu. Possible values: true/false. Default: true;
- LEAPWORK_LOGS_DIR -- a path to a folder where all application log will be written. Possible values: string, any valid path. Default: C:\Program Files\LEAPWORK\Logs\.
- List of features
For more information about MSI installation please visit following links from Microsoft Link 1, Link 2.
Examples:
Install command in CMD:
Just install:
- Windows 8 and above, Windows Server 2012 and above: msiexec.exe /i "path\to\installer.msi" /qn /norestart
- Windows 7 and Windows Server 2008 R2: msiexec.exe /i "path\to\installer.msi" /qn /forcerestart
Install with logs:
- Windows 8 and above, Windows Server 2012 and above: msiexec.exe /i "path\to\installer.msi" /qn /norestart /l*v "path\to\log.txt"
- Windows 7 and Windows Server 2008 R2: msiexec.exe /i "path\to\installer.msi" /qn /forcerestart /l*v "path\to\log.txt"
Install only the Agent and the Controller:
- Windows 8 and above, Windows Server 2012 and above: msiexec.exe /i "path\to\installer.msi" /qn /norestart /l*v "path\to\log.txt" ADDLOCAL=AgentFeature,ControllerFeature
- Windows 7 and Windows Server 2008 R2: msiexec.exe /i "path\to\installer.msi" /qn /forcerestart /l*v "path\to\log.txt" ADDLOCAL=AgentFeature,ControllerFeature
Install only the Studio:
- Windows 8 and above, Windows Server 2012 and above: msiexec.exe /i "path\to\installer.msi" /qn /norestart /l*v "path\to\log.txt" ADDLOCAL=StudioFeature
- Windows 7 and Windows Server 2008 R2: msiexec.exe /i "path\to\installer.msi" /qn /forcerestart /l*v "path\to\log.txt" ADDLOCAL=StudioFeature
Install with custom parameters:
- Windows 8 and above, Windows Server 2012 and above: _msiexec.exe /i "path\to\installer.msi" /qn /norestart /l*v "path\to\log.txt" LEAPWORK_AGENT_PORT=5432 LEAPWORK_LOGS_DIR="C:\some folder\some subfolder\log.txt"
- Windows 7 and Windows Server 2008 R2: _msiexec.exe /i "path\to\installer.msi" /qn /forcerestart /l*v "path\to\log.txt" LEAPWORK_AGENT_PORT=5432 LEAPWORK_LOGS_DIR="C:\some folder\some subfolder\log.txt"
Uninstall command in CMD:
- Windows 8 and above, Windows Server 2012 and above: msiexec.exe /x "path\to\installer.msi" /qn /norestart
- Windows 7 and Windows Server 2008 R2: msiexec.exe /x "path\to\installer.msi" /qn /forcerestart
Please note: Windows 7 and Windows server 2008 requires restart after installation which can be done manually or by adding restart command in your command line script
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.