Pages

Saturday, February 18, 2012

Extracting the msi file from VMware View Client installation executable and installing it via Active Directory Group Policy

Problem

You have to deploy VMware View Client on a number of Windows XP workstations and installing the client manually is not an option because there are too many workstations in the environment.  Then environment does not have Microsoft SCCM or any other enterprise deployment software and the only option you have is Active Directory’s native Group Policy.

Solution

As much as I don’t like using Group Policy to deploy software packages, I have worked in environments that gives me no choice but to use it as a way deploy the VMware View Client because there are simply too many workstations to manually install it.

The first step prior to setting up the Group Policy retrieve the msi and respective files required for the installation of the VMware View Client so start off by executing the VMware-viewclient.exe file to bring up the following splash screen:

image

**Note that for the purpose of this example, I’m using the 32-bit version of the VMware View Client and assigning it to Windows XP 32-bit desktops.

Once the VMware View Client installation splash screen displays on your screen, open the run window and type in %temp% and then hit enter:

image

In the opened Windows Explorer window, look for a folder with a unique identifier ending with the string ~setup:

image

Navigating into the folder will show the following 7 files:

  1. Core.cab
  2. instmsiw.exe
  3. ThinPr~1.cab
  4. TSSO.cab
  5. USB.cab
  6. vcredist_x86.exe
  7. VMware View Client.msi

image

You’ll need all of these files for the installation so copy the files onto a file server and share the folder out.

Next, create an OU in your Active Directory that you will be putting your computer accounts in to deploy the VMware View Client.  The idea here is that we’ll move the computers that need to have the client installed and once the client has been installed, we’ll be moving it out.  I’ve always preferred to deploy software packages with Active Directory this way because you don’t want this policy continuously checked against the workstations when they boot up:

image

Next, open up Group Policy Management Console and create a new policy for the OU:

image

image

image

image

Proceed with editing the policy:

image

Navigate to the node Computer Configuration –> Software Settings –> Software installation and then right click in the right window, select New –> Package:

image

Within browser, navigate to the VMware View Client.msi file via the UNC path:

image

Once you’ve clicked on the Open button, you’ll be prompted with the following window.  Select the Assigned radio button and click OK:

image

As shown in the screenshot, the msi package has now been published:

image

Proceed with moving a computer object into the OU to test the deployment:

image

Log onto the workstation and execute gpupdate /force to force a refresh of group policy.  Once the group policy refresh has completed, execute a gpresult on the workstation and make sure the policy has been applied to the workstation:

image

Once you have confirmed that the policy is applied to the workstation, proceed with logging off and back on or restarting the workstation.  The package will then proceed to install.

Note that this setup installs with default parameters with no default connection server and other customization settings available to you when you manually install the package.  I haven’t looked into publishing the msi package with customized switches as the wizard does not natively allow you to add switches so I usually just use another GPO to apply the settings.

1 comment:

Anonymous said...

Juste VMwareViewClient.exe /a