Deploying Containers in App-V

26/10/2017 Parvinder Rehal   ID: 278458

Create an App-V package for the Cloudhouse Container

  1. Create the Cloudhouse Container for the application.
  2. Create a zip of the Container, and a script to extract and deploy the Container, refer to Deploying Zipped Containers.‍ 
  3. Create an empty App-V Package e.g. 'AppName-Cloudhouse'.
  4. Edit 'AppName-Cloudhouse' App-V package.
  5. Select 'Package Files' tab.
  6. Under 'Package' add an empty text file e.g. 'AppName-Cloudhouse.txt' 
  7. Under 'Package\Scripts' add the following files:
    1. Zipped Cloudhouse package ''
    2. DeployZippedContainer.ps1
  8. Edit AppName-Cloudhouse_DeploymentConfig.xml
  9. Uncomment the 'Machine Scripts' and/or User Scripts depending on the type of installation you require.
  10. <UserScripts>
         <Arguments>-file ..\Scripts\Deployzippedcontainer.ps1 -sourcezip {} -deploycmd Cloudhouse.Container.Deployment.exe -deployargs "/deploydir c:\programdata /deploytype user /usagelocation {\\share\License}"</Arguments>
         <Wait RollbackOnError="false" Timeout="100"/>
         <Arguments>-file ..\Scripts\Deployzippedcontainer.ps1 -sourcezip {} -deploycmd Cloudhouse.Container.Deployment.exe -deployargs "/deploytype user /uninstall"</Arguments>
         <Wait RollbackOnError="true" Timeout="100"/>
  11. <MachineScripts>
        <Arguments>-file ..\scripts\deployzippedcontainer.ps1 -sourcezip {} -deploycmd Cloudhouse.Container.Deployment.exe -deployargs "/deploydir c:\programdata /deploytype machine /usagelocation {\\share\License}"</Arguments>
        <Wait RollbackOnError="false" Timeout="100"/>
        <Arguments>-file ..\scripts\deployzippedcontainer.ps1 -sourcezip -deploycmd Cloudhouse.Container.Deployment.exe -deployargs "/deploytype machine /uninstall"</Arguments>
        <Wait RollbackOnError="false" Timeout="100"/>
  12. Save modified AppName-Cloudhouse_DeploymentConfig_Custom.xml file
  13. Save Package

Test the Appv-Container 

It is always useful for testing an debugging before deploying the container with APPV, so if the you need to test on a standalone machine please use the following commands:

Install and publish to user 
Add-AppvClientPackage {path to appv} -DynamicDeploymentConfiguration"{Path to Deployment config}" | Publish-AppvClientPackage

Uninstall User
Get-AppvClientPackage {AppName} | Unpublish-AppvClientPackage | Remove-AppvClientPackage

Install to all users
Add-AppvClientPackage {Path to appv} -DynamicDeploymentConfiguration {Path to Deployment config} | Publish-AppvClientPackage -global

Uninstall all USERS
Get-AppvClientPackage{appname} | Unpublish-AppvClientPackage -Global | Remove-AppvClientPackage

Publish the App-V Container

App-V Containers are deployed following standard App-V publishing procedure.

  1. Upload modified package to App-V share
  2. Open App-V Management Console
  3. Import App-V package (importing the Custom.xml)
  4. Assign package to security group that contains target servers
  5. Publish package
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support