How to ensure App-V 5 package is pre-loaded into the local cache.
There are several ways to get the whole package (.appv) down to the local machine's cache.
1. You can set the App-V client registry setting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\Client\Streaming\AutoLoad
There are 3 settings:
0 = Automatically load nothing into cache
1 = Automatically load previously used applications into cache (default)
2 = Automatically load all published applications into cache (regardless of whether they have been previously used)
This setting can be adjusted using the /AUTOLOAD switch at App-V Client installation or using the following PowerShell command:
Set-AppvClientConfiguration -AutoLoad [0/1/2]
Note: If using setting 2 (Load all), this occurs on Publish, so as an application gets Published, it will begin streaming 100% into cache.
2. Using the 'Mount' option, this will download the whole package before Publishing the application:
get-help Mount-AppvClientPackage -examples
Loads a package into the App-V cache.
Example 1: Get a specific version of a package
PS C:\> Mount-AppvClientPackage -Name "MyApp" -Version 2
This command downloads the version 2 of the package named MyApp.
Example 2: Get all versions of a package
PS C:\> Mount-AppvClientPackage -Name "MyApp"
This command downloads the all versions of the package named MyApp.
Example 3: Download all packages that match a string
PS C:\> Get-AppvClientPackage -Name "My*" | Mount-AppvClientPackage
This command gets all packages that have the string My in the name, and then download them.
Example 4: Download and publish a new package
PS C:\> Add-AppvClientPackage -Path "http://MyServer/content/package.Appv" | Mount-AppvClientPackage | Publish-AppvClientPackage -Global
This command adds the package from the path specified, then downloads it, and then publishes it to all users on the computer.
Example 5: Cancel a download
PS C:\> Mount-AppvClientPackage -Name "MyApp" -Cancel
This command cancels the download of the package name MyApp.
3. Make you tick the check box in the sequencer "Force application(s) to be fully downloaded before launching...."
The 'Mount' method will download a package regardless of this sequencer setting.