Prerequisite
- Microsoft Application Virtualization Sequencer must be installed.
Obtain Information from an App-V Package Using Microsoft Application Virtualization Sequencer
- Open Microsoft Application Virtualization Sequencer.
- Select Modify an Existing Virtual Application Package.
- Click Edit Package, then click Next.
- Click Browse and locate the App‑V package. and double-click on it.
- Click Edit.
- From the Properties tab, save the Package Name and Package GUID as you willl need them in the later steps.
- Navigate to the Package Files tab and expand the folders until you locate the executable.
- Right‑click the executable (for example,
XenCenterMain.exe) and click Edit. - Save the path as you will need it later. Prefix the path with
Root\VFS\ and remove{}fromProgramFilesX86
Root\VFS\ProgramFilesX86\XCP-ng Center\XenCenterMain.exe
Add an App-V Package in Application Workspace
- Open Application Workspace and navigate to Manage > Packages.
- Create a Custom package with the following action sets and actions:
- Action set type: Install
- Action type: Install uploaded file with Destination set to
${PackageTempDir}\ - Action type: Run uploaded script with the following properties:
- Script engine set to Windows PowerShell
- Script:
EnableAppv - Context: Device
-
Action type: Run uploaded script with the following properties:
- Script engine set to Windows PowerShell
- Script:
AddAppvClientPackage "XCP-ng Center.appv"where you replace the App-V Package name with your own package name - Directory set to
${PackageTempDir}\ - Context: Device
- Action type: Run uploaded script with the following properties:
- Script engine set to Windows PowerShell
- Script:
PublishAppvClientPackage -Name "XCP-ng Center" -Globalwhere you replace the App-V Package name with your own package name - Context: Device
- Action type: Install uploaded file with Destination set to
-
Action set type: Launch (This step uses the Package GUID and Package Path collected in the previous section)
-
Action type: Start process with the following properties:
- Process: C:\ProgramData\Microsoft\AppV\Client\Integration\<Package GUID>\<Package Path>
- In Filters tab create a File exist type filter where you specify the path to the executable
-
Action type: Start process with the following properties:
- Action set type: Install
Example:
C:\ProgramData\Microsoft\AppV\Client\Integration\
728497f7-c17f4b3c-bef4-c572abd4dd9a\
Root\VFS\ProgramFilesX86\XCP-ng Center\XenCenterMain.exe
Uninstall action set (Optional)
Within the same Custom package, add the following action set and actions:
- Action set type: Uninstall
- Action type: Run uploaded script with the following properties:
- Script engine set to Windows PowerShell
- Script:
Get-AppvClientPackage -name “XCP-ng Center” | Stop-AppvClientPackage | Remove-AppvClientPackagewhere you replace the App-V Package name with your own package name - Context: Device
- Action type: Run uploaded script with the following properties: