You can use the silent installation feature of the Microsoft Windows Installer (MSI) to install and uninstall a Horizon Agent patch. In a silent installation, you use the command line and do not have to respond to wizard prompts.
Prerequisites
-
Verify that you have administrative rights on the virtual machine or physical PC.
-
Select the product version and download the Horizon Agent Update Patch installer file from the Horizon product page in Customer Connect.
The installer filename has the pattern
Horizon-Agent-x86_64-YYMM-y.y.y-xxxxxx.exe, where YYMM is the marketing version number, y.y.y is the internal version number, and xxxxxx is the build number.
Note: In the following examples, the name agent-installer.exe stands in for the downloaded installer file. Substitute the name of the installer exe you are using.
Procedure
-
Open a Windows command prompt as administrator on the virtual machine or physical PC.
-
To install a Horizon Agent patch where Horizon Agent is installed, run the .exe file:
msiexec /pagent-installer.exe/qn REINSTALL=ALL”After installing the patch, verify the patch build number is updated in the Horizon Agent's
HKLM\SOFTWAREregistry entries forAgentVersions!view-agentandBuildNumber. -
To uninstall a Horizon Agent patch where Horizon Agent is installed, run a PowerShell script:
remove-patch.ps1ProductCode-driven command line example:
msiexec /package {product_code} /uninstall {patch_guid} /passiveAfter uninstalling the patch, check the Horizon Agent's
HKLM\SOFTWAREregistry entries forAgentVersions!view-agentandBuildNumberand verify that no reference of the patch exists. Verify the services are in the same state as they were before uninstalling the patch.
Was this page helpful?