How to launch an external program inside an App-V 5.0 environment
In the old App-V versions, you can make this with the command line parameter:
sfttray.exe /exe App1.exe OSDFilePath\OSDFile.osd
With App-V 5.0, you can make this with the the command line switch /appvve that apparently can be added to any executable to launch it inside a virtual environment.
Example
Start Application "App1.exe" in the virtual environment of the PackageID "714ccb17-20a9-4fc3-b635-146cba322ac0" with the VersionID "72e97ec0-165e-4180-870c-ed0e13125ab5". Please note the "_" between PackageID and VersionID!
C:\App1.exe /appvve:714ccb17-20a9-4fc3-b635-146cba322ac0_72e97ec0-165e-4180-870c-ed0e13125ab5
You can find the PackageID and the VersionID with the following PowerShell command:
sfttray.exe /exe App1.exe OSDFilePath\OSDFile.osd
With App-V 5.0, you can make this with the the command line switch /appvve that apparently can be added to any executable to launch it inside a virtual environment.
Example
Start Application "App1.exe" in the virtual environment of the PackageID "714ccb17-20a9-4fc3-b635-146cba322ac0" with the VersionID "72e97ec0-165e-4180-870c-ed0e13125ab5". Please note the "_" between PackageID and VersionID!
C:\App1.exe /appvve:714ccb17-20a9-4fc3-b635-146cba322ac0_72e97ec0-165e-4180-870c-ed0e13125ab5
You can find the PackageID and the VersionID with the following PowerShell command:
- Open Powershell.exe (with admin rights)
- Import-Module AppVClient
- Get-AppVClientPackage -Name VApp1
- You can find the PackageID (Example 714ccb17-20a9-4fc3-b635-146cba322ac0)
- And the VersionID (Example 72e97ec0-165e-4180-870c-ed0e13125ab5)
Nice one...
ReplyDelete