FAQ: TBarCode Office Installation
Repairing a Corrupt ClickOnce Application Cache
Repairing a Corrupt ClickOnce Application Cache
The VSTO installer uses ClickOnce technology from Microsoft to install the add-in for the current user (not used with "All Users" option). ClickOnce applications and add-ins are installed into a specific user directory from where they are executed. This directory (or cache) may be corrupted resulting in errors during installation.
There are several methods with different effectiveness to repair or clean up the ClickOnce application cache. Perform the following steps one after the other.
Clear the Application Cache with Mage
- Download the cache cleaning script from here.
- Uninstall the add-in, execute the CustomCacheCleaning.cmd, then install the add-in again.
- When you install the add-in, don't enable the All Users option with Office 2007.
- We recommend to update to the latest add-in version.
Cache Cleaning with dfshim.dll
Run the following command from an Administrator elevated command prompt:
rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
This should repair the ClickOnce cache.
Deleting the ClickOnce Cache
If the previous commands do not resolve the issue, it may be necessary to remove the ClickOnce application cache completely:
- In Windows Explorer, enter the following path: %LOCALAPPDATA%\Apps\2.0
- After that you should be in the C:\Users\<UserName>\AppData\Local\Apps\2.0 folder.
- Backup all folders to a safe location.
- Delete all folders in the \2.0 folder. This removes the ClickOnce file cache from the system and can influence also other Add-Ins or ClickOnce Apps.
- Uninstall and install TBarCode Office new.
- The above cache folder will be recreated automatically.