Professional Documents
Culture Documents
Volume - I
AN INTRODUCTION
TO SEQUENCING
Author:
Mayank Johri (johri.maya@gmail.com)
Dated: Monday, January 26, 2009
available at http://creativecommons.org/licenses/by-nc-sa/3.0/.
Disclaimer
The information in this document is based on publicly available documentation. In no event shall author be liable for
any direct, indirect, consequential, punitive, special or incidental damages (including, without limitation, damages
for loss of profits, business interruption or loss of information) arising out of the use or inability to use this
document, even if Author has been advised of the possibility of such damages. Author makes no representations or
warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to
make changes to this document at any time without notice. Author does not make any commitment to update the
information contained in this document.
License
http://creativecommons.org/licenses/by-nc-sa/3.0/
Version information
Title: Microsoft Application Virtualization - An Introduction to Sequencing.
Author: Mayank Johri
Version: 2.0
Document Date: Monday, January 26, 2009
Table of Contents
Introduction.................................................................................................................................................................................1
Prerequisites..........................................................................................................................................................................2
Sequencing.............................................................................................................................................................................2
Source Files Validation.................................................................................................................................................................3
Pre Installation Validation......................................................................................................................................................4
Testing Source Files................................................................................................................................................................5
Validate the Source files Installation................................................................................................................................5
Requirements of Application...........................................................................................................................................5
Presequencing.............................................................................................................................................................................6
Preparing Sequencing Machine.............................................................................................................................................7
Installing App-V Sequencer....................................................................................................................................................7
Configuring App-V Sequencer................................................................................................................................................7
Adding Exclusion item......................................................................................................................................................7
Using Custom default.sprj................................................................................................................................................7
Sequencing..................................................................................................................................................................................8
Q-Drive Sequencing...............................................................................................................................................................9
Benefits............................................................................................................................................................................9
Drawbacks........................................................................................................................................................................9
VFS Sequencing......................................................................................................................................................................9
Benefits............................................................................................................................................................................9
Drawbacks........................................................................................................................................................................9
Sequencing.............................................................................................................................................................................9
Configuration Wizard.....................................................................................................................................................10
Installation Wizard.........................................................................................................................................................10
Shortcut Wizard.............................................................................................................................................................11
Sequence Cleanup..........................................................................................................................................................12
Publishing and Testing...............................................................................................................................................................14
Publishing Application.........................................................................................................................................................15
Installing Microsoft App-V Management Console (MAMC)..........................................................................................15
Prerequisites.............................................................................................................................................................15
Installation................................................................................................................................................................15
Publishing.................................................................................................................................................................15
Testing..................................................................................................................................................................................17
App-V Server..................................................................................................................................................................17
Chapter - 1
Introduction
Contents
Prerequisites................................................................................................................................................................................2
Sequencing..................................................................................................................................................................................2
Application sequencing is the process that takes an off-the-shelf Windows application and prepares it for streaming. This
process consists of arranging the application in such a way that the portions of executable code needed first by the end
user are put at the beginning of the sequenced file so they are the first to be sent over the network. This includes
component files, DLLs and Registry settings. It is important to note that the application is not changed in any way.
Sequencing allows applications to run without installing or altering the host operating system. Application virtualization
eliminates the need to test one application against all the others in a production environment for system conflicts,
significantly reducing the time it takes to integrate applications. By creating virtualized application packages, they are
turned into on-demand services that are centrally administered from single management console.
Virtualized applications can be deployed in real-time and when users need them, instead of having to be installed
manually. Users with laptops can even retain these services in a disconnected mode for a predefined amount of time which
is normally 45 days if not set by administrator.
Prerequisites
It is assumed that the readers have the knowledge of following technologies.
• Creating Virtual Machines using any of the following virtual technologies VirtualBox, VMWare Workstation,
VMWare Server, Virtual PC or QEMU
• Installing Windows XP / Vista and applying patches to them
• Installing Softwares and MSI Technology
• Wise Package Studio or ORCA
Sequencing
The Sequencing process can be divided into the following sections:
• Source Files Validation
• Virtual Machine Setup & App-V Client Installation and Configuration
• Application Installation & Configuration
• Shortcuts Configuration
• Sequence Cleanup
• App-V Sequence Testing
Chapter – 2
Contents
Pre Installation Validation...........................................................................................................................................................4
Testing Source Files.....................................................................................................................................................................5
Validate the Source files Installation.....................................................................................................................................5
Requirements of Application.................................................................................................................................................5
The most important task while creating any package is to validate the source files and sequencing is no exception to it. It is
important to know that not all applications can be sequenced and not all applications which can be sequenced should be
sequenced.
Requirements of Application
Make a list of all the dependent applications, middle-ware, custom setting required by main application. Evaluate all of
them with regards to sequencing, that it makes sense to sequence them or install them locally.
Chapter – 3
Presequencing
Contents
Preparing Sequencing Machine...................................................................................................................................................7
Installing App-V Sequencer.........................................................................................................................................................7
Configuring App-V Sequencer.....................................................................................................................................................7
Adding Exclusion item............................................................................................................................................................7
Using Custom default.sprj......................................................................................................................................................7
Creating sequencing machine is another very important task which should not be taken lightly and extra care should be
taken to maintain it. The best policy of creating the sequencing machine is that it should have minimum denominator.
That means Sequencing machines should have only applications which are present on all the machines sequenced
application will be streamed.
Hardware
1 C Drive 10 GB
2 Q Drive 10 GB
3 Memory 1 – 2 GB
Softwares
2 Service Latest
Pack
3 VC Runtime 2005
Sequencing
Contents
Q-Drive Sequencing.....................................................................................................................................................................9
Benefits..................................................................................................................................................................................9
Drawbacks..............................................................................................................................................................................9
VFS Sequencing...........................................................................................................................................................................9
Benefits..................................................................................................................................................................................9
Drawbacks..............................................................................................................................................................................9
Sequencing..................................................................................................................................................................................9
Configuration Wizard...........................................................................................................................................................10
Installation Wizard...............................................................................................................................................................10
Shortcut Wizard...................................................................................................................................................................11
Sequence Cleanup...............................................................................................................................................................12
There are two ways to sequence an application. Q Drive and VFS Sequencing. They both have some benefits and
drawbacks and should be chosen based on your application.
Q-Drive Sequencing
In Q Drive, sequencing the application is installed in Q Drive under mount point folder instead of installing it in its default
location. Q Drive is the recommended sequencing method and should be used in all cases except DSC Installation and few
other cases.
Benefits
• The Sequenced application runs faster then VFS Sequenced application
Drawbacks
• If application install location is hard coded then Q Drive sequencing can not be used
VFS Sequencing
In VFS sequencing the application and its supporting applications are installed in there default location. VFS sequencing is
recommended process for sequencing DSC Sequencing.
Benefits
• Hardcoded application can be sequenced using it.
• Best solution for sequencing DSC based applications which copy files in subfolder of base applicaitons.
Drawbacks
• Sequenced applications run slightly slower then Q Drive based sequence.
• Some applications might not work properly, specially apps which try to evaluate the launch location at the launch
time.
Sequencing
1. Start the sequencing machine.
2. Stop all the unwanted services such as
• Windows Update
• Anti Virus, anti spyware, firewall, etc
• Help and Support
• Indexing Service
• Messenger
• Themes
3. Create a folder in Q: drive with name which represent [PML Sequence ID].
[Revision]: - This folder should be in MSDOS compatible 8.3 format. e.g.
000000212.003 and RCAT3002.002.} This folder name should be always unique.
The reason it is needed in 8.3 formats is that all the packages are cached in Q: drive on the client machine and
thus there is a change that two folder names will be same upto 6 characters and thus the sequencer client will not
be able to identify them properly.
4. Install the sequencer as described in previous chapter.
5. Open the source files location in explorer
6. Start the Sequencer and select the “File” -> “New Package”
Configuration Wizard
Configuration wizard is used to define Sequence name, Mount Point Folder, install & configure the application.
7. In the package Information Window (Step 1) fill the following information
• Package Name: Enter the Package Name
• Comments: In this section many information can be entered such as
i. Sequencing Date
ii. Sequencer Name
iii. Packaging Details
1. App Locations of all sequencing.
2. Packager Name
3. Packaging Type
Package Name
Installation Wizard
The Installation wizard is used to install and configure the application(s)
8. Select the Mount Point Folder
10. At least start the application three times and close it so that the application should reach in stable status.
For VFS Sequencing application should be installed at C:\Program Files\<app folder>, or its default
directory where as in Q: Drive Sequencing the application should be installed in a subfolder under mount
point folder.
The reboot request is always captured by App-V sequencer thus if after the installation or during the
installation a reboot is required then just stop and restart the monitoring.
11. Once the installation and configuration is completed, press “Stop Monitoring”.
12. If any files needs to be added to the sequence then “Sequencing Wizard: Step 4 of 7” is the last chance
to add the files.
Shortcut Wizard
On the “Configure Applications” Dialog followings items can be configured
• Add, Remove & Update Shortcuts
• Add, Remove & Update File Type Association
• Add, Remove & Update Shortcut Display Location
13. Remove all the unwanted shortcuts from the list such as readme.txt, help files, etc.
14. Set the appropriate version number in the Version section of shortcuts
Sequence Cleanup
17. Remove any logged in user/computer specific information from Virtual Registry Section
18. In the Deployment tab update the followings:
• Protocol
• HostName
• Path
• “Operating systems” - Add all Operating Systems in selected section
19. Save the package by selecting “File”->”Save” and select the folder as C:\temp\<SuiteName> as location
and name as <SuiteName>.
20. Copy the saved folder on the content share folder.
Chapter – 5
Contents
Publishing Application...............................................................................................................................................................15
Installing Microsoft App-V Management Console (MAMC)................................................................................................15
Testing........................................................................................................................................................................................17
App-V Server........................................................................................................................................................................17
Once the sequence is created and copied to the content share, it needs to be published and tested before it can be
published in production environment.
Publishing Application
In order to distribute the sequence to users, it needs to be published on a App-V Server. Applications can be published
using Microsoft Application Virtualization Management System (MAVMS)
Prerequisites
Followings components needs to be installed
• MMC 3.0
• Framework.NET 2.0
Installation
• Launch the setup.exe of Server Installation
•
Publishing
1. Start the App-V Management console and select Applications and then the group where you want to publish the
applicaition.
2. Right click and then select “New Application Group”
4. Right click on the newly created Application Group and select “Import Applications...”.
5. Traverse and select the appropriate SPRJ or OSD File.
6. In the “Import Applications”, Select Enable, select appropriate License Group and Server Group.
7. Enter the location where the shortcuts should be displayed on the client machines, Default location is under
“Publish to User’s Start Menu” and press Next
8. If the suite requires any file association then add the file association and press next
9. Select the appropriate groups and select Next and then Select Next and then Select “Finish”
Testing
Testing sequenced application should include the followings:
• Streaming on a fresh machine
• Launching and completing the test cases for admin and non-admin users.
• Validating the proper working of all the launch scripts if present.
• Validating the OSD & SPRJ files for the followings Tags
• WorkingDir: It should not be empty
•
The Sequencer can test the application using either one the following methods:
• App-V Server: Publish the sequence and then test the sequence
• SoftGrid Package Manager (http://sourceforge.net/project/showfiles.php?group_id=210688)
App-V Server
App-V Server can be used to stream the application for testing the application.