How to create an application for deploying the App-V 5.0 Client with Configmgr 2012
January 14, 2013 at 9:09 pm in App-V, App-V 5.0, Application Model, AppV, CM12, ConfigMgr 2012 SP1, Deployment, deployment types, detection methods, Operating System Deployment, OSD, sccm, SCCM 2012 SP1, vbscript by Kenny Buntinx [MVP]
In this blog post we will show you how to create the application for deploying the App-V 5.0 client which is part of the MDOP ( Microsoft Desktop Optimization Pack )suite.
App-V 5.0 client is supported on the following platforms (As you can see , there is NO XP support) :
First we need to have a look on the exact prerequisites needed to run the App-V 5.0 client . You will find that kind of information here : http://technet.microsoft.com/en-us/library/jj713458.aspx
However the information on what version you need on the Microsoft Visual C++ is vague. We will clarify that below :
- Microsoft Windows .NET Framework 4 (Full Package) (http://www.microsoft.com/en-us/download/details.aspx?id=17718)
- Windows PowerShell 3.0 (http://www.microsoft.com/en-us/download/details.aspx?id=34595)
- Download and install KB2533623 (http://www.microsoft.com/en-us/download/details.aspx?id=26746)
- The Microsoft Visual C++ 2010 SP1 x64 Redistributable –> v10.0.40219 (http://go.microsoft.com/fwlink/?LinkId=268896)
- The Microsoft Visual C++ 2005 SP1 x86 Redistributable –> v8.0.61001 http://www.microsoft.com/en-us/download/details.aspx?id=26347
Now we need to create for each component an application . Lets start :
Windows .NET Framework 4 (Full Package)
Full installation code : dotNetFx40_Full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT
Create 2 detection methods as shown below
Detection Method 1 : {8E34682C-8118-31F1-BC4C-98CD9675E1C2}
Detection Method 2 : {F5B09CFD-F0B2-36AF-8DF4-1DF6B63FC7B4}
Windows PowerShell 3.0
Full installation code : c:\windows\System32\wusa.exe "Windows6.1-KB2506143-x64.msu" /quiet /norestart
Use a script as detection method :
Full detection script :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<span class="rem">'Returns info if Windows Management Framework 3 in installed</span> <span class="rem">' ----------------------------------------------------------' </span> <span class="kwrd">Option</span> Explicit <span class="kwrd">Dim</span> objWMIService, strComputer strComputer = <span class="str">"."</span> <span class="rem">'Run the query</span> <span class="kwrd">Set</span> objWMIService = GetObject(<span class="str">"winmgmts:"</span> _ & <span class="str">"{impersonationLevel=impersonate}!\\"</span> _ & strComputer & <span class="str">"\root\cimv2"</span>) <span class="kwrd">Dim</span> QFEs <span class="kwrd">Dim</span> QFE <span class="kwrd">Set</span> QFEs = objWMIService.ExecQuery (<span class="str">"Select * from win32_QuickFixEngineering where HotFixID like 'KB2506143'"</span>) <span class="kwrd">For</span> <span class="kwrd">Each</span> QFE <span class="kwrd">in</span> QFEs Wscript.echo <span class="str">"Update KB2506143 was installed by "</span> & QFE.InstalledBy & <span class="str">" on "</span> & QFE.InstalledOn <span class="kwrd">Next</span> WScript.Quit |
KB2533623 –> Apply hotfix in your base image or use CBS updates with offline updates
Microsoft Visual C++ 2010 SP1 –> Use download link specified above and use MSI detection methods
Microsoft Visual C++ 2005 SP1 –> Use download link specified above and use MSI detection methods
App-V 5.0 Client itself
When done , we going to create the App-V 5.0 Client Application . Deploy one of the following Windows Installer files to the target computer. The Windows Installer file you specify must match the configuration of the target computer.
- If the target computer is running a 32-bit Microsoft Windows operating system, deploy the appv_client_MSI_x86.msi.
- If the target computer is running a 64-bit Microsoft Windows operating system, deploy the appv_client_MSI_x64.msi.
- If you are deploying the App-V 5.0 Remote Desktop Services client, deploy the appv_client_rds_MSI_x64.msi.
Create your application.
Create 2 deployment types : x64 and x86
For the X64 deployment type
Use the regular msi install parameters
Use the regular msi detection method
Now you must create dependencies . Make sure you select AUTO Install !
First create the Visual C++ 2005 SP1 x86 and select the deployment type you created earlier .
Then create a WMF 3.0 one and select the deployment type you created earlier .
Then create the Visual C++ 2010 SP1 x86 and select the deployment type you created earlier .
Then as the last one , create the Visual C++ 2010 SP1 x64 and select the deployment type you created earlier .
Your al set , your App-V 5.0 install is ready to be used .
Hope it Helps ,
Kenny Buntinx
Thomas said on April 16, 2013
This is good stuff, but I’m wondering how this handles the required reboot after WMF 3.0 is installed.
App-V 5.0 seems to detect that you need to reboot the computer before it will allow the install to continue.
Thanks
Kyle said on May 2, 2013
Hello,
Thanks for the guide. I’m working through setting it up now. Just thought I would let you know that KB2533623 was replaced/addressed in KB2758857. I tried installing and it said it didn’t apply so I did a little digging and that’s what I found. Also, per Thomas’ comment above, is there a way in SCCM 2012 SP1 to force a reboot after WMF prior to installing App-v?
Thanks again for the guide!