Skip to main content

SWM - Software Install - Deploy Liongard Agent

Summary

The purpose of the script is to install the latest available version of the Liongard Agent. The script provides an option to run the Liongard Agent service as LocalSystem or with a custom credential. It can also be used to upgrade an older installation to the latest version.

Implementation

  • Import the script.
  • Reload System Cache.
  • Create the liongard_url system key and set the respective URL in it.
    Image

Sample Run

To run the Liongard Agent Service with the credentials saved at the location-level Passwords tab as Liongard Service Account:
Image
The Liongard Service Account password entry must be saved at the location-level Passwords tab for the script to run the service with these credentials.
Image

To run the installed Liongard Agent service as LocalSystem:
Image

Attempt to upgrade to the latest available version:
Image

Dependencies

The script will work as long as this download URL is active:
https://agents.static.liongard.com/LiongardAgent-lts.msi

Variables

NameDescription
AccessKeyLiongard Access Key
SecretLiongard Secret
EnvironmentLiongard Environment
LiongardURLLiongard URL
UsernameService User
PasswordPassword of the service user
AppNameLiongardAgent
WorkingDirectoryC:/ProgramData/_automation/script/LiongardAgent
InstallerC:/ProgramData/_automation/script/LiongardAgent/LiongardAgent.msi

Global Parameters

NameExampleRequiredDescription
LiongardCredentialsTitleLiongard Service AccountTrueTitle of the credentials to run the Liongard Agent service after installing the application.

User Parameters

NameExampleRequiredDescription
RunAsSystem1FalseSet it to 1 to run the Liongard Agent service as LocalSystem
DescriptionDomain Controller of the EnvironmentFalseAgent Description; it will fall back to the \\<computername> if left blank
Upgrade1FalseSet it to 1 to attempt to upgrade the application to the latest available version

System Properties

NameExampleRequiredDescription
liongard_urlusXX.app.liongard.comTrueLiongard URL to be used to install the application

Client-Level EDF

NameExampleRequiredDescription
Liongard Access Key12fe3456cd67def89abc2TrueLiongard Access Key of the client
Liongard Access Secretd02bded900b42440b82292bee20bb449d24db9be4e2802808b0444209e8249ddTrueLiongard Secret of the client
Liongard EnvironmentProValTechTrueClient Name in Liongard Portal
Image

Output

  • Script Logs