Mar 12, 2013 - 5 Comments - App-V, App-V 5.0 -

App-V 5.0 OS Integration – Part 1 – Package Format

In this series of posts I am going to take you behind the scenes of how our packages integrate with our operating system in App-V 5.0.

The most logical place to start is with the package itself and understanding what is output by our Sequencer.

Package

Let’s take this Paint.NET package and try to understand how it is made up.

report.xml

This file is carried over from our 4.6 SP1 days and contains diagnostic and advisory items around our sequenced package such as any warnings or errors encountered during sequencing or any files that have been excluded.

<PackageName>_UserConfiguration.xml

This file is for user specific changes that can be influenced at the time of publishing a package to a user. For example if we want to deploy a package with different shortcuts or a specific script to a certain group of users.

<PackageName>_DeploymentConfiguration.xml

Similar to the above however this file is for global changes that can be influenced at the time of publishing a package. For example if we want to deploy a package with standard set of shortcuts or a particular script to all users.

<PackageName>.msi

The subject of much misconception, this file is not a standalone installer in its own right, it still requires the following .appv file. The .msi will walk users through an installation which essentially will run the PowerShell cmdlets to add the package to the App-V Client in standalone mode.

<PackageName>.appv

Saved the best till last, this is our actual package itself. This one file is enough to publish and deploy our package. It contains our applications assets similar to the .sft we had in App-V 4.x but the file format is not so mystic. The .appv format is a container, built off the .appx format (based on the OPC standard) which forms Windows 8 store applications. This means often we can copy and rename the .appv to zip to explore the contents, this is not a supported method of viewing or changing the actual package so please beware.

zip

When we view the inside of .appv we find some really interesting files and folders, lets call some out:

StreamMap.xml

I have previously mentioned this file in my blog around Feature Block 0 – The Publishing Feature Block. It essentially contains how we have optimised the stream of our package and which files are required at which points.

PackageHistory.xml

This file is like the passport for the package and contains lots of informational items around its origins. For example in here we can find which user sequenced the package, on which machine and at what time. There are lots of other useful pieces of historical information stored inside this file.

FilesystemMetadata.xml

This file contains a list of the files that were captured and make up the package, alongwith the attributes of these files.

AppxManifest.xml

This file is the metadata for the package and contains everything we need to publish it. For example not only does it contain the names/GUIDs associated with our package but it also contains things like the file type associations and shortcuts.

Registry.dat

Now this file is exactly what you think it is! It is a mountable .dat file containing the registry that was captured as part of the package. To browse this file you can copy it out and mount it in regedit under HKLM.

regedit

Root

Now we know how the registry is stored, Root is where we can find the file system. Here we can browse the files that were captured in our package right down to the executable itself.

root

Now we understand the composition of our App-V 5.0 packages take a look at part two where I will be talking about the File System Cache on the client operating system.

App-V 5.0 OS Integration

Part 1 – Package Format

Part 2 – File System Cache

Part 3 – Registry

Part 4 – State Changes

5 Responses to App-V 5.0 OS Integration – Part 1 – Package Format

  1. catchtime

    Hi, thanks for the great posting. I have one question, can APP-V solve the compatibility betwenn application and OS? I have tested acrobat 6 professional and office 2003, they both failed running at WIN7. Thanks very much.

    26 Apr 2014 -
    • Thamim Karim

      Hi there, App-V is not a app compat solution so it isn't designed the help solve compatibility issues from OS to OS. The main thing is to check the application you are sequencing can run locally. I haven't tried Acrobat 6 Pro but MS Office 2003 should work for you.

      26 Apr 2014 -
  2. Prasad Namana

    I have one question, can we sequence java based application is it a best thing do if not what is the reason

    26 Apr 2014 -
    • Thamim Karim

      Hi Prasad, Java based applications are very common candidates for App-V

      26 Apr 2014 -
  3. App-V 5.0 Ramp up Guide | VirtualVibes

    […] App-V 5.0 OS Integration – Part 1 – Package Format | Blog […]

    1 May 2014 -

Leave a Reply