May 22, 2013 - 4 Comments - Virtual Vibes -

Specifying Working Directories with App-V 5.0

5 Years 6 Months 2 Weeks and 1 Day ago my mate Justin Zarb wrote a brilliant blog post on Specifying a Working Directory in App-V 4.x and how we can use the .OSD to achieve this.

Well here I am a good while later, posting about how we do the same thing in App-V 5.0. Time does fly!

The Default

A lot of apps will register a working directory somewhere in its installation folder during installation by default these working directories will be translated to somewhere in:

“%ALL– USERSPROFILE%\Microsoft\AppV\Client – For globally published apps


%LOCALAPPDATA%\Microsoft\AppV\Client – For user published apps

There are two opportunities to set working directories with App-V 5.0, at sequencing or post sequencing…

During Sequencing

This method is simple, just change the working directory on your shortcut during the monitoring phase to whatever you desire. Here the users documents folder has been specified:


This action will get captured and then end up embedded within the appxmanifest.xml file held within the .appv:


You will notice that the user’s documents folder has been change to a variable, this is something you see a lot with all versions of App-V Sequencer, it helps to make our state portable with no or little ties back to the OS the package was sequenced on or the user who sequenced it.

You can see a list of these parsers in the sequencer under Tools -> Options -> Parse Items


After Sequencing

We also have the option to change working directories after sequencing at deployment time, in the absence of our .OSD file we had in App-V 4.x we can leverage our config.xml files.


Remember the deploymentconfig.xml file can be used using the Add-AppvClientPackage to target a deployment:

The userconfig.xml can be applied at publish time to target the change at specific users

This can of course all be done from the management console too but if you want to know more about the add/publish in standalone read here.

4 Responses to Specifying Working Directories with App-V 5.0

  1. Mark

    Good article mate – just what I was looking for!

    26 Apr 2014 - Reply
    • Thamim Karim

      Good to hear Mark, thanks!

      26 Apr 2014 - Reply
  2. Rich

    Hi Thamin,

    Since [{Personal}] is an exclusion item in the sequencer and therefore not captured, I’ve found on a package I’ve done that the “Start in” on the client shortcut points at %ALL– USERSPROFILE%\Microsoft\AppV\Client\Integration\\Root\VFS\Personal\ which won’t resolve because there’s no Personal at this location.

    Wouldn’t %– USERPROFILE% be better here thus keeping it away from the bubble? You wouldn’t want any user files getting trashed if the package was repaired anyway.


    14 Aug 2014 - Reply
    • Rich

      Note: There was supposed to be a Package ID in between the Integration\\Root bit above but it didn’t get posted properly!

      14 Aug 2014 - Reply

Leave a Reply

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