Xem phan cachepath trong package.ini
CachePath Setting in Package.ini
Posted on October 4, 2008 by Travis Sales
When using AppSync, remember that you now have a new entry that will allow you to control the location of the upgraded file on the local file system.
CachePath–Sets the path to the cache directory where Application Sync updates and font files are stored. This setting can contain macros like %Local AppData% which will be expanded before use. If the path is relative, it is interpreted relative to the directory where the package is stored.
The setting can be overridden at runtime by the environment variable, THINSTALL_CACHE_DIR.
If neither the CachePath setting nor the THINSTALL_CACHE_DIR environment variable are present, a default is used. The default depends on the presence of a SandboxPath setting in the package.ini file. If there is a SandboxPath setting and it is a relative path, then CachePath defaults to the same path. If there is no SandboxPath setting or the path setting is absolute, then CachePath will default to %Local AppData%\Thinstall\Cache.
For example, set the cache directory to C:\VirtCache:
CachePath=C:\VirtCache
With the package located in C:\VirtApps, this will set the cache to C:\VirtApps\Cache:
CachePath=Cache
In a typical USB key scenario, you force the sandbox to the USB key. If the packages are stored in a subdirectory, \VirtApps, on the USB key, enter the following to force the cache directory to the USB key too:
SandboxPath=Sandbox