Application Cache

Also known as ClickOnce Cache
Also known as the ClickOnce Application Cache or ClickOnce Deployment Cache

All clickonce applications which are installed locally or hosted online are saved on the clients computer in a ClickOnce Application Cache The ClickOnce Cache is a group of hidden folders under the users profile, Local Settings folder.
This folder holds all the application files, assemblies, configuration files, application and user settings.
The folder/cache helps to isolate applications as well as separating different versions of the same applications.

If an application is set to run online then every version that the user has accessed is kept If an application is set to run locally then only the current version and the previously installed one is kept.

Where is the ClickOnce Cache ?

Windows 7 - C:\Users\"username"\AppData\Local\Apps\2.0\
Windows XP - C:\Documents and Settings\"username"\Local Settings\Apps\2.0\

How to clear the ClickOnce Cache ?

There are two ways to clear the (entire) ClickOnce Application Cache mage -cc or
rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache

Cache Storage Quota

A clickonce application that is hosted online has a restriction on the amount of space that it can occupy in the ClickOnce Application Cache A clickonce application that is installed locally are not restricted in size and do not take up any space in the ClickOnce Cache folder A single partially-trusted online application cannot take up more than half of the Cache quota.

By default this size is restricted to 250 MB A system administrator could change this by changing the following DWORD key HKCU \ Software \ Classes \ Software \ Microsoft \ Windows \ CurrentVersion \ Deployment \ OnlineAppQuotaInKb \

Checking at Run time


You can access these files using the System.Deployment namespace to determine their runtime location System.Deployment.ApplicationDeployment class

Deployment - Digital Signatures (add the deployment.h)

Adding the digital certificate to trusted publisher's list
Right click on "*.dll" in the installation directory.
Select Properties->Digital Signature tab
Select the Thomson financial certification from the list and click Details button.
The Digital Signature Details window is displayed.
In the General tab click 'View Certificate' button.
The Certificate window is displayed.
In the General tab- click the Install Certificate.
The Certificate Import wizard is displayed
Click the Next button
Select "Place all certificates in the following store" option and click on the Browse button.
Select the "Trusted Publishers" folder from the list.
Click OK
Click Next
Click Finish.

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext