--- title: Running a Locally Installed Application Inside a Virtual Environment with Virtualized Applications description: Running a Locally Installed Application Inside a Virtual Environment with Virtualized Applications author: dansimp ms.assetid: a8affa46-f1f7-416c-8125-9595cfbfdbc7 ms.reviewer: manager: dansimp ms.author: dansimp ms.pagetype: mdop, appcompat, virtualization ms.mktglfcycl: deploy ms.sitesec: library ms.prod: w10 ms.date: 06/16/2016 --- # Running a Locally Installed Application Inside a Virtual Environment with Virtualized Applications You can run a locally installed application in a virtual environment, alongside applications that have been virtualized by using Microsoft Application Virtualization (App-V). You might want to do this if you: - Want to install and run an application locally on client computers, but want to virtualize and run specific plug-ins that work with that local application. - Are troubleshooting an App-V client package and want to open a local application within the App-V virtual environment. Use any of the following methods to open a local application inside the App-V virtual environment: - [RunVirtual registry key](#bkmk-runvirtual-regkey) - [Get-AppvClientPackage PowerShell cmdlet](#bkmk-get-appvclientpackage-posh) - [Command line switch /appvpid:<PID>](#bkmk-cl-switch-appvpid) - [Command line hook switch /appvve:<GUID>](#bkmk-cl-hook-switch-appvve) Each method 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. ## RunVirtual registry key To add a locally installed application to a package or to a connection group’s virtual environment, you add a subkey to the `RunVirtual` registry key in the Registry Editor, as described in the following sections. There is no Group Policy setting available to manage this registry key, so you have to use System Center Configuration Manager or another electronic software distribution (ESD) system, or manually edit the registry. ### Supported methods of publishing packages when using RunVirtual
App-V version | Supported publishing methods |
---|---|
App-V 5.0 SP3 |
Published globally or to the user |
App-V 5.0 through App-V 5.0 SP2 |
Published globally only |
Package publishing method | Where to create the registry key |
---|---|
Published globally |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\Client\RunVirtual Example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\Client\RunVirtual\MyApp.exe |
Published to the user |
HKEY_CURRENT_USER\SOFTWARE\Microsoft\AppV\Client\RunVirtual Example: HKEY_CURRENT_USER \SOFTWARE\Microsoft\AppV\Client\RunVirtual\MyApp.exe |
Connection group can contain:
|
Either HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER key, but all of the following must be true:
|