Learn to Use App-V to Deploy Office 2013

IT administrators, with the release of App-V 5.0 SP2, now have the ability to virtualize the volume license edition of Office 2013. This is new, as previously you could only virtualize the Office 365 version of Office 2013. The article can be used to deploy both, though I will focus primarily on the volume license version. I will cover the 365 version when I get to the download phase.

In order to complete this article, you will need the Microsoft Desktop Optimization Pack (MDOP) 2013 R2 for Software Assurance. The installers for App-V are contained with this package. App-V can be set up in two ways – with SCCM or as a standalone service. This article will focus on SCCM integration. See the Microsoft TechNet documentation for how to deploy App-V as a standalone service.

Deploy the App-V Client

The first thing we must we do is deploy the App-V client. To do this, simply copy the App-V client installer from the MDOP media to you SCCM content location. I recommend creating an application (instead of a package) for this deployment. When it comes time to create your deployment type, use this as the command to install the client:

“appv_client_setup.exe” /quiet /norestart /ACCEPTEULA /ENABLEPACKAGESCRIPTS=1

I recommend using the standard EXE to install the App-V client. This will take care of any prerequisites that may be missing, except for Windows Management Framework 3.0, and pick the correct architecture for the client. The first three parameters in this command are pretty self-explanatory. The last one is needed because the Office 2013 package has scripts that run inside of it. Package scripts must be enabled for the App-V package to deploy and function correctly.

WMF 3.0 needs to be installed separately, due to a required reboot. To create your package for this, download the 32-bit and 64-bit version of WMF 3.0 here: https://www.microsoft.com/en-us/download/details.aspx?id=34595. Be careful that you download the correct files – Windows 6.0 is Vista, Windows 6.1 is Windows 7. Create another application, and use this command line in your deployment types, replacing “x86” with “x64” for the 64-bit deployment type. Be sure to set the correct architecture in the “Requirements” tab.

c:\windows\System32\wusa.exe “Windows6.1-KB2506143-x86.msu” /quiet /norestart

I recommend using a custom script as your Detection Method. This one, written in VB, should do the trick:

Option Explicit
Dim objWMIService, strComputer
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” _
& strComputer & “\root\cimv2”)
Dim QFEs
Dim QFE
Set QFEs = objWMIService.ExecQuery (“Select * from win32_QuickFixEngineering where HotFixID like ‘KB2506143′”)
For Each QFE in QFEs
Wscript.echo “Update KB2506143 was installed by ” & QFE.InstalledBy & ” on ” & QFE.InstalledOn
Next
WScript.Quit

Now, in your App-V application, add the WMF 3.0 deployment as a dependency.

For the App-V client install detection method, add {D5783B51-00A6-4991-B6C3-88B35BA45E94} and {8556995F-384F-4E13-90C8-C423BE9C7478} as Windows Installer product codes (be sure to change the connector to “Or”).

Create App-V Package

The first thing we need is the Office Deployment Tool for Click-to-Run, which can be downloaded here: https://www.microsoft.com/en-us/download/details.aspx?id=36778. Extract the files to a location on your computer. You should have setup.exe and configuration.xml. The next thing we need to do is modify the xml file. Change the “Add SourcePath” parameter to a location on your network, preferably your SCCM content share and the OfficeClientEdition parameter to “32” or “64”, depending on your architecture. Next, change the “Product ID” parameter based on your requirements. For volume license, change it to “ProPlusVolume”. Uncomment the lower properties based on your requirements.

Now we need to download the click-to-run package. To do that, open a command prompt and navigate to your extract directory. Run this command:

setup.exe /DOWNLOAD <full path to configuration.xml>

This will download the click-to-run package to the directory specified in the configuration.xml file. Once the files are downloaded, we can build the App-V package. To do that, you can use the same configuration.xml file and run this command:

setup.exe /PACKAGER <full path to configuration file> <full path to package output directory>

This will save the App-V package to the output directory.

App-V Package Modifications

I recommend making a few modifications to the App-V package. To do this, you will need the App-V Sequencer, which is found on the MDOP media. The changes that I recommend making are centered on the first-run wizard and video that launches when you first launch Office 2013. I did not want these things presented in my environment, so I pre-populated the registry keys inside my App-V package. In a normal, non-virtualized, deployment, you can simply remove these things using the Office Customization Tool.

We need to add seven registry keys. To get started, launch the App-V Sequencer. Select “Modify an Existing Virtual Application Package”. On the next screen, select “Edit Package”. Navigate to your output directory and select the .appv file.

When the package opens, go to the “Virtual Registry” tab. Expand to USERS\.DEFAULT\Software\Microsoft\Office\15.0. Add these keys and values:

Key name is “PTWatson”

These keys will take care of the first-run video and sign-ins, and also the re-registration that takes place between when Office 2010 and 2013 are installed on the same machine. After the registry keys are in, save the package changes.

SCCM Deployment

To import the App-V application, create a new application in SCCM and select “Microsoft Application Virtualization 5” from the first page of the application wizard. Follow the rest of the wizard as you would any other SCCM application.

You could, if you wanted, add the App-V client as a dependency of your App-V package. This will ensure that any device that tries to install your App-V version of Office will have the App-V client first.

The rest is just like any other SCCM software deployment. You can make the App-V Office application required or optional for deployment.

Share:

Facebook
Twitter
LinkedIn
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

=
On Key

More Posts

WME Cybersecurity Briefings No. 020
Cyber Security

WME Security Briefing 26 July 2024

Pro-Houthi Group Targets Yemen Aid Organizations with Android Spyware Overview A suspected pro-Houthi group, OilAlpha, is targeting humanitarian organizations in Yemen with advanced Android spyware. The operation is associated with the activity cluster codenamed OilAlpha. It

Read More »
WME Cybersecurity Briefings No. 019
Cyber Security

WME Security Briefing 23 July 2024

Samba File Shares Targeted by DarkGate Malware in Recent Cyber Offensive Overview Recent investigations by Palo Alto Networks uncover a brief but significant cyberattack campaign utilizing DarkGate malware. This malicious software exploited Samba file shares to

Read More »
WME Cybersecurity Briefings No. 018
Cyber Security

WME Security Briefing 15 July 2024

OVHcloud Mitigates Record-Breaking 840 Million PPS DDoS Attack Overview In April 2024, OVHcloud, a top French cloud computing firm, successfully stopped a massive DDoS attack. The attack hit a record-breaking rate of 840 million packets per second

Read More »
E-Commerce Security - Solutions for Online Retailers
Azure

E-commerce Security – Solutions for Online Retailers

Today’s hyper-charged e-commerce landscape demands top-notch cybersecurity measures. Cybersecurity for this bustling sector isn’t just about ticking a technical box; it’s the cornerstone of building trust. As businesses and consumers flock to the online space, the

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=