title | ms.date | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | author | ms.author | manager | ms.workload | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ClickOnce Cache Overview | Microsoft Docs |
11/04/2016 |
conceptual |
|
|
e379921e-9ef1-4326-bbf3-53ba67925526 |
mikejo5000 |
mikejo |
jillfra |
|
All [!INCLUDEndptecclick] applications, whether they are installed locally or hosted online, are stored on the client computer in a [!INCLUDEndptecclick] application cache. A [!INCLUDEndptecclick] cache is a family of hidden directories under the Local Settings directory of the current user's Documents and Settings folder. This cache holds all the application's files, including the assemblies, configuration files, application and user settings, and data directory. The cache is also responsible for migrating the application's data directory to the latest version. For more information about data migration, see Accessing Local and Remote Data in ClickOnce Applications.
By providing a single location for application storage, [!INCLUDEndptecclick] takes over the task of managing the physical installation of an application from the user. The cache also helps isolate applications by keeping the assemblies and data files for all applications and their distinct versions separate from one another. For example, when you upgrade a [!INCLUDEndptecclick] application, that version and its data resources are supplied with their own directories in the cache.
[!INCLUDEndptecclick] applications that are hosted online are restricted in the amount of space they can occupy by a quota that constrains the size of the [!INCLUDEndptecclick] cache. The cache size applies to all the user's online applications; a single partially-trusted, online application is limited to occupying half of the quota space. Installed applications are not limited by the cache size and do not count against the cache limit. For all [!INCLUDEndptecclick] applications, the cache retains only the current version and the previously installed version.
By default, client computers have 250 MB of storage for online [!INCLUDEndptecclick] applications. Data files do not count toward this limit. A system administrator can enlarge or reduce this quota on a particular client computer by changing the registry key, HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\OnlineAppQuotaInKB, which is a DWORD value that expresses the cache size in kilobytes. For example, in order to reduce the cache size to 50 MB, you would change this value to 51200.