Article ID: 2848278 - View products that this article applies to.
A common troubleshooting task for the Microsoft Application Virtualization 5.0 client (App-V 5.0) is to investigate or modify a local package by opening a process inside the context of an App-V application. This is also known as opening a process "in the App-V bubble". App-V 5.0 offers several alternative methods to perform this task that differ significantly from techniques available in previous versions of the product. Each method detailed below accomplishes essentially the same task, but some methods may be better suited for some applications than others depending on whether the virtualized application is already running.
Get-AppvClientPackage PowerShell Cmdlet
You can use the Start-AppVVirtualProcess cmdlet to retrieve the package name and then start a process within the specified package's virtual environment (substitute the name of your package for "<Package>"):
Hint: If you do not know the exact name of your package, you can use the command line Get-AppvClientPackage *executable*, substituting the name of the application for "executable"; for example: Get-AppvClientPackage *Word*.
This method allows you launch any command within the context of an App-V package whether the package is currently running or not. This is similar to using the sfttray /exe cmd.exe /launch "App-V Application" syntax in App-V 4.6.
The Command Line Switch “/appvpid:<PID>”
This allows you to apply the /appvpid switch to any command which will allow the command to run within the virtual process of the virtual process you selected by its PID (Process ID) as in the example below:
To obtain the process ID (PID) of your App-V process, use the command tasklist.exe from an elevated command prompt and obtain the PID of your process. This method has the advantage of launching the new executable in the same App-V environment as an already-running executable.
Where the /appvpid switch requires the virtual process to already be running, this switch allows you to start a local command and allow it to run within the virtual environment of an App-V package and will initialize it. The syntax is as follows:
To obtain the package GUID and version GUID, of your application, run the Get-AppvClientPackage cmdlet, then concatenate the package GUID and version GUIDs with an underscore between them. For example:
would yield the command line:
If you are working within RDS environments, and have a package that is published globally, you can also take advantage of the “Run Virtual” feature. To do this, the add process executable names as subkeys of the following key:
For example, if you have a locally installed application named MyApp.exe and would like this application to run within the virtual environment, create a subkey called MyApp.exe. Edit the (Default) REG_SZ value that contains the package GUID and the version GUID separated by an underscore (i.e. <GUID>_<GUID>.
For example, the application listed in the previous example would yield a registry export (.reg file) like the following:
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.
Article ID: 2848278 - Last Review: September 16, 2013 - Revision: 4.0