How can I sequence applications using App-V version 5 for Configuration Manager 2012 SP1

Now that App-V version 5 is available and Configuration Manager 2012 Service Pack 1 beta is out there’s more reason then ever to learn how to sequence applications with App-V and then deploy them with Configuration Manager 2012 Service Pack 1.It’s cool, it’s fun and it’s about time you got started !

Tip: This guide is long and detailed, make sure to give yourself plenty of time to go through it all.

Step 1. Fulfill the requirements for Sequencing applications

Before starting this, you’ll need to setup your lab, and for that you’ll need a good environment to sequence apps, I’d recommend using a virtual machine (that way you can take snapshots before adding an application, highly recommended) and in my guide I’m using a Windows 7 X64 Service Pack 1 virtual machine running in HyperV.

Tip: Windows 8 also works fine for sequencing apps however as some applications don’t yet support that Operating System it might be a better idea to sequence your apps in Windows 7 until Windows 8 gains more traction.

The following requirementsmust be met otherwise you’ll get an error as soon as you attempt to install the Sequencer.

  • Windows 7 Service Pack 1 or later
  • .NET 4 Framework Full Version
  • PowerShell 3.0

Download the requirements from here.NET 4 Framework Full Version from here.
PowerShell 3.0 (contained in Windows6.1-KB2506143-x64.msu) from here.

Step 2. Download the MDOP ISO

To sequence applications you’ll need to download App-V version 5 and it’s included in the newly released Microsoft Desktop Optimization Pack (MDOP) which is available for download to Microsoft Volume License customers and on Technet.To find it on Technet choose Desktop Optimization Pack under Product categories.

MDOP on Technet.png

Download the 2012 MDOP iso, the one I downloaded was called en_desktop_optimization_pack_2012_x86_x64_1100291.iso (1.29GB).

MDOP Optimization Pack 2012.png

Extract the ISO and locate the App-V content, it is located in \App-V\Installers\5.0

app-v installers.png

Step 3. Install the Sequencer

On your Windows 7 (or Windows 8) client computer, browse to \App-V\Installers\5.0\Sequencer and right-click on the appv_sequencer_setup.exe file and choose Run as Administrator.

Run As Administrator.png

The App-V Sequencer setup appears, you can click on the Before you begin link to bring you to an App-V website (which still refers to App-V 4 strangely enough) or you can click on Install to start the installer.

App-v sequencer setup.png

accept the license aggreement

accept EULA.png

decide if you want to join the CEIP or not

CEIP.png

click install and it will begin the installation

Installing.png and after some installing it’s all done.

setup completed successfully.png

Step 4. Sequence an Application

In the start menu locate the Microsoft Application Virtualization Sequencer and it will start, if you are not a local administrator it will prompt you for administrative credentials.

Microsoft Application Virtualization Sequencer.png

The Sequencer wizard appears, select the first option, Create a New Virtualization Package

sequencer menu.png

select Create Package (default) the other option is for Packages that have already been created using a Package Accelerator.

create package.png

at this point you’ll probably see something like this (I do indeed have Forefront Endpoint Protection Antivirus software and the Configuration Manager client is installed). Take note of the warnings and restart the computer, after the restart you can stop those services when the computer has restarted (run services.msc as administrator).

Pending restart operations detected.png

Tip: If after the restart you still see restart operations pending then you can try restarting again or use a tool such as Why Reboot (download it here) to see what is requiring the reboot. Run that application as administrator otherwise it won’t be able to view all parts of the Registry.

If you are still seeing Pending Resetart Operations detected, then check the following registry keys, export them if present and remove any entries  listed in them, you can restore the keys later by simply double-clicking on the exported registry key *.REG files.

  • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

Note: Please make sure that all problems found are cleared before continuing otherwise you’ll end up risking problems with your Application Virtualization process.

When your system is ready to create a virtual package is displayed click next

your system is ready to create a virtual package.png

select standard application (default)

standard application (default).png

when the Select the installer for the application appears click on browse and select an application you want to virtualize, in this example I will use Adobe Reader.

browse to app.png

Next you input the Package Name and Primary Virtual Application directory

Package name.png

Note: The Primary Virtual Application Directory is the directory that will contain all files for the sequence.  It is recommended to define the application’s default installation directory (example C:\Program Files\directory) as the Primary Virtual Application Directory.

Next you will see a Please wait… before the application itself starts

please wait.png

once the application starts you’ll need to complete the installation actions

you must complete the application installations before you continue.png

so click next on the Adobe Reader wizard (your chosen app will obviously have different steps for its installation which you must deal with, this guide is only for Adobe Reader)

adobe reader installing.png

after a while you should see your application complete its Installation, click on Finish.

installation complete.png

when you are done with your application, place a checkmark in I am finished installing.

I am finished installing.png

once you click next the App-V sequencer will gather the changes made by the application installation

gathering changes.png

before being presented with a Configure software step which allows you to run the app in order to configure it for any update requirements or license agreements etc.

Configure Software.png

You can select the application and click Run, the application starts and in this example a License screen is presented (in Swedish), accept it so that your users won’t be prompted with the License Agreement when they run the application.

accept.png

Next configure the application settings to not automatically check for updates, you don’t want your App-V application annoying your users by prompting them to update it once they run it… again this screenshot is in Swedish but you’ll figure it out won’t you ?

disable automatic updates.png

once you are done making your configuration changes click on next and the sequencer will gather your changes again…

gathering new changes.png

and then you get to review the installation report

review the installation report.png

in the screenshot above it mentions some files were excluded that may be required, if you double click on this it will tell you why they were excluded and how to resolve it

warning one or more files were excluded from the package because.png

in addition it referred to some unsupported shell extension, again double-clicking the warning will give you tips to resolve it

The sequencer detected an unsupported shell extension.png

let’s assume all is OK and continue by clicking Next, once you do you have the option to Stop now or Customize. In this example we’ll stop now as we don’t want to restrict the package on any operating systems and we are not concerned with network latency.

Stop Now.png

next you get to save the package somewhere useful, give the package some description as well, fill in the info and click on create

App-V package created.png

your virtual application package is createdcreating the virtual application package.png

and your package is completed, any warnings are listed, you can double click on them for more info, once done click close

Package Completed.png

You can now browse to the path where you saved the App-V package and you’ll see the files are all there waiting for you, congratulations you’ve just sequenced your first App-V 5 package !

App-V package saved to location.png

Step 5. Add your App-V5 application to Configuration Manager 2012 SP1

Now that we’ve sequenced our first app, we want to deploy it, but before doing so we need to add it to Configuration Manager 2012 Service Pack 1.In the Software Library workspace right click on Applications and choose Create Application, when the menu appears select Microsoft Application Virtualization 5

Microsoft Application Virtualization 5.png

and select the location of the App-V package by pointing to the .appv file in your App-V package

location of the App-V package.png

if all goes well you will be displayed with the View Imported Information screen

View Imported Information.png click your way through that wizard until completion.

Create Application wizard complete.png

Step 6. Add the App-v client

In order to deploy App-V applications we need to have the App-v client installed on our target computers, the client installation files are located on the extracted ISO in \App-V\Installers\5.0\Client, copy them to your sources folder (\\server\sources\apps\appv\v5\client) on the Configuration Manager server.

Note: In this guide I will not go into details of fulfilling the prerequisites for the App-V client package (that’ll come in a later blog). However you must ensure that your client computers meet the prerequisites or the app-v client will fail to install. If you want to keep it easy then test with Windows 8 as that has most of the prerequisites built in (you may still need to install the Microsoft Visual C++ 2005 SP1 Redistributable and the Microsoft Visual C++ 2010 Redistributable) as described below…

Below are the prerequisites for the App-V Client:

Create a new application and point it to your App-v Client folder

appv client application.png

it gets imported

view imported information for the appv client.png

add some info, take note that this is the 64 bit MSI for 64 bit operating systems, you’ll have to repeat this process for the other 32bit msi.

name the app-v client.png

continue the wizard until completion

app-v 64bit client application done.png

and then repeat the above for the 32bit client msi.

app-v 32bit client application done.png

once done, don’t forget to add the client applications to your Distribution Points

distribute the client.png

Step 7. Edit your Application to add a dependency for the App-v Client

Locate your previously added application (Adobe Reader) and right click it, select properties and navigate to the Deployment Types tab, select the listed Deployment Type and click Edit

Deployment Types.png

On the requirements tab select both Windows 7 X64 and Windows 8 X64 as per the screenshot below

requirements added.png

Next select the Dependancies tab of our Deployment Type and give it the name App-V X64 Client, click on Add and point it to our previously created App-V X64 Client, select that deployment type so that it’s like the screenshot below

dependency added.png

and click ok then apply to apply the changes to our Deployment Type and ok + apply…Once done you can create a new Deployment type with a requirement for the X86 Operating systems and a dependency for the 32bit client.

new deployment type for the X86 App V client.png

so now we have two deployment types for our Adobe Reader application to deal with both 32bit and 64 bit operating systems.

two deployment types.png

Step 8. Deploy your app-v application

Right click on your newly added application and choose Deploy.

Deploy.png

point it to your desired collection

collection all users.png

next you can add your distribution points by clicking on Add and selecting the distribution points you want to have the content available on

add distribution points.png

in this guide we are not forcing the installation therefore we’ll set the purpose to available (optional)

available software.png

click your way through the rest of the wizard until completion

deploy wizard is done.png

Step 9. Review the App-V application installation

Now that you’ve done the hard work, logon to a client computer and wait until it retrieves policy or trigger a policy update to speed things along.Open the Application Catalog and you’ll see your new App-V application listed there, select it and click on Install

Adobe Reader 11.png

you might be asked if you are sure you want to install the application, answer yes..

are you sure.png

and off it goes installing…if you get any failures then it’s most likely due to missing prerequisites for the App-V client software, refer to a MSI*****.log file present in C:\Windows\Temp for details of the missing prerequisites.

missing prerequisite.png

fix the missing prerequisite problems before continuing..

missing prerequisite #2.png

Note: at this point if you get any errors about the installation of Adobe Reader (or your virtual application) it may be due to a feature in this version, unfortunately this is due to having spaces in the App V application name. To resolve this please edit the Appv package using the sequencer and remove the spaces or replace them with underscores like in the screenshots below. I’ll update this post once I know more about that feature…

Simply start the sequencer and choose Modify an existing virtual package followed by Edit, then change the name and save the result.Here’s what that problem looks like, notice how it’s trying to determine what arguments ‘reader’ are…

terminated with exitcode 1.png

to resolve it, go back to your sequencer and modify your App-V package

modify existing.png

then choose Edit

edit.png

select your existing virtual application package

select existing virtual application package.png

change the name and click on File then Save As (without spaces…)

new package name.png

Once done, create a new app exactly as before in Configuration Manager as described above, except  this time use the Adobe_Reader_11 application instead.Once done don’t forget to Deploy it, then logon back on to your client and select the new application in the Application Catalog. and you should see the App-V client gets installed happily and pops up in the system tray

app_v_client installed.png

and our Virtual Application is installed! success, finally… 🙂

success.png

Further Reading

I’d highly recommend you checkout the following websites for great  information about App-V and beyond.

until next time,adios

niall.

This entry was posted in App-V Version 5, ConfigMgr 2012. Bookmark the permalink.

2 Responses to How can I sequence applications using App-V version 5 for Configuration Manager 2012 SP1

  1. Pingback: RONNIPEDERSEN.COM » HOW-TO: Sequence applications using App-V 5 for CM2012

  2. Pingback: How can I sequence applications using App-V version 5 for Configuration Manager 2012 SP1 « MS Tech BLOG

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.