Jump to content


Photo

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


  • Please log in to reply
7 replies to this topic

#1 anyweb

anyweb

    Administrator

  • Root Admin
  • PipPipPip
  • 5,412 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Deploying Operating systems and more with System Center Configuration Manager

Posted 11 November 2012 - 10:49 AM

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 requirements must 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.
  • Rocket Man likes this
Microsoft MVP > Enterprise Client Management
My linkedin profile at > linkedin.com
Follow me on Twitter > ncbrady
Follow windowsnoob.com on Twitter > windowsnoob
My blog

#2 Kingen

Kingen

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts

Posted 12 November 2012 - 02:25 PM

Great post Niall, and cool Desktop Picture!
  • anyweb likes this
That's Jättebra!

#3 Oneone

Oneone

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts
  • Gender:Male
  • Location:Stockholm Sweden

Posted 15 November 2012 - 10:01 AM

Cool post!

Gonna try this out !
  • anyweb likes this

#4 ramlan

ramlan

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • Gender:Male

Posted 16 November 2012 - 07:01 PM

I want to try but don't have technet subscription. Too bad MS is not sharing with general public for testing/learning purpose.

Edit - Finally found MDOP 2012 ISO file. Now the testing/learning starts.

Excellent tutorial NCBRADY........ Look forward to more tutorial on app-v....
  • anyweb likes this

#5 xnor2001

xnor2001

    Member

  • Members
  • PipPip
  • 10 posts

Posted 24 March 2013 - 06:42 PM

Hello Niall;

I couldn't have accomplished installation of App-V client on Win8 x64.

It keeps me require "The Microsoft Visual C++ 2005 Redistributable (x86) minimum 8.0.61000" . As far as I know the latest release of "The Microsoft Visual C++ 2005 Redistributable (x86)" is 8.0.50727.42.



#6 _exploreeverything_

_exploreeverything_

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 March 2013 - 10:39 PM

Hello Niall;

I couldn't have accomplished installation of App-V client on Win8 x64.

It keeps me require "The Microsoft Visual C++ 2005 Redistributable (x86) minimum 8.0.61000" . As far as I know the latest release of "The Microsoft Visual C++ 2005 Redistributable (x86)" is 8.0.50727.42.

For the manual install of the client, out of the three msi packages in the mdop 2012 iso>appv>installers>5.0>Client folder, just run appv_client_setup and this will install the client. Running the client individually manually will keep giving you the kick back error message.

 

the appv_client_MSI_x64 and x86 are for group policy push outs and a reference install for appv_client_setup.



#7 Fray

Fray

    Advanced Member

  • Members
  • PipPipPip
  • 68 posts
  • Gender:Male

Posted 05 April 2013 - 10:46 PM

wow!!!! excelent :huh:



#8 chaitanya

chaitanya

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 31 December 2013 - 09:21 AM

thanks for sharing APPV deployment.

 

I have done the same as per the above Screenshot for deploying APPV 5.0 Application using SCCM 2012 but no luck in Client machine " Application CAtalog"

 

please let me know where I need to check the logs status of APPV deployed apps?

I can't see the logs in mentioned location. while deploying .APPV package I have taken the collection "device Collections"






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Locations of visitors to this page