Add an App‑V Package

Prerequisite

  • Microsoft Application Virtualization Sequencer must be installed.

Obtain Information from an App-V Package Using Microsoft Application Virtualization Sequencer


  1. Open Microsoft Application Virtualization Sequencer.
  2. Select Modify an Existing Virtual Application Package.
  3. Click Edit Package, then click Next.
  4. Click Browse and locate the App‑V package. and double-click on it.
  5. Click Edit.
  6. From the Properties tab, save the Package Name and Package GUID as you willl need them in the later steps.
  7. Navigate to the Package Files tab and expand the folders until you locate the executable.
  8. Right‑click the executable (for example, XenCenterMain.exe) and click Edit.
  9. Save the path as you will need it later. Prefix the path withRoot\VFS\ and remove {} from ProgramFilesX86
Example: Root\VFS\ProgramFilesX86\XCP-ng Center\XenCenterMain.exe

Add an App-V Package in Application Workspace

  1. Open Application Workspace and navigate to Manage > Packages.
  2. 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" -Global where you replace the App-V Package name with your own package name
        • Context: Device
    • 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

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-AppvClientPackage where you replace the App-V Package name with your own package name
      • Context: Device