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.
  • Download the Horizon Agent Update Patch installer file from the VMware product page at http://www.vmware.com/go/downloadview.

    The installer filename is VMware-Horizon-Agent-x86_64-YYMM-y.y.y-xxxxxx.msp, where YYMM is the marketing version number, y.y.y is the internal version number, and xxxxxx is the build number.

Procedure

  1. Open a Windows command prompt as administrator on the virtual machine or physical PC.
  2. To install a Horizon Agent patch where Horizon Agent is installed, run the .msp file: msiexec /p VMware-Horizon-Agent-x86_64-YYMM-y.y.y-xxxxxx.msp /qn REINSTALL=ALL”
    After installing the patch, verify the patch build number is updated in the registry: HKLM:\SOFTWARE\WOW6432Node\VMware, Inc.\AgentVersions!view-agent and HKLM:\SOFTWARE\VMware, Inc.\Vmware VDM!BuildNumber.
  3. To uninstall a Horizon Agent patch where Horizon Agent is installed, run a PowerShell script: remove-patch.ps1
    ProductCode-driven command line example: msiexec /package {product_code} /uninstall {patch_guid} /passive
    After uninstalling the patch, check the registry: HKLM:\SOFTWARE\WOW6432Node\VMware, Inc.\AgentVersions!view-agent and HKLM:\SOFTWARE\VMware, Inc.\Vmware VDM!BuildNumber that no reference of the patch exists. Verify the services are in the same state as they were before uninstalling the patch.