I'm running into a filename path length problem in the BuildCache directory, which is currently lcoated at "C:\Documents and Settings\<user>\Local Settings\Application Data\Thinstall\BuildCache." I would like to move it to a shorter path, but haven't been successful. I've tried setting the THINAPP_CACHE_DIR env. variable, but it had no affect. I am running the latest version of ThinApp. Any help is appreciated. Thanks.
Hi hmartin,
Instead of setting the environment variable to THINAPP_CACHE_DIR, set it to THINSTALL_CACHE_DIR and set the respective path as per your need. Also please go through the following information. I hope it is helpful to you.
CachePath-Sets the path to the cache directory that stores font files and stub executable files. You can use this parameter when you need to force the cache directory to reside on a different drive.
This parameter can contain macros, such as %Local AppData%, that expand before use. If the path is relative, ThinApp interprets the path relative to the directory where the package is stored.
For extra flexibility, you can use the THINSTALL_CACHE_DIR environment variable to override this parameter at runtime.
If neither the CachePath parameter nor the THINSTALL_CACHE_DIR environment variable is present, ThinApp uses a default locaation. The default location depends on the presence of a SandboxPath parameter in the Package.ini file. If the SandboxPath parameter exists and the path setting is relative, CachePath defaults to the same path.
If the SandboxPath setting exists and the path setting is absolute, CachePath defaults to %Local AppData%\Thinstall\Cache\Stubs.
For example, set the cache directory to C:\VirtCache:
CachePath=C:\VirtCache
With the package located in C:\VirtApps, the cache is set 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 the \VirtApps subdirectory on the USB key, enter the following to force the cache directory to the USB key too:
CachePath=Sandbox
Thanks and Regards,
Pallavi S
Thanks for the response and information. Apparently, there was a typo in the 4.0.1 admin guide. Using THINSTALL_CACHE_DIR moved the Stubs folder, but not the BuildCache folder, so I'm still stuck.
It is currently not possible to move the BuildCache folder, it's location is always %Local AppData%\Thinstall\BuildCache.
I'm a bit surprised that you're running into a path length problem. That must mean you either have a very long username or a very long filename (original path doesn't matter, the filename itself needs to be quite large)?
Yes, unfortunately, this is going to be the case with much of our software from IBM, which uses some amazingly long filenames. These apps also take a long time to install and configure, which is why we wanted to try ThinApp. I'll submit a change request via Support. Thanks for the information.
The BuildCache is only used when building a compressed package, so if you don't require compression you might want to try switching it off.
Thanks. The resulting packages are very large 2-6GB, so I haven't tried without compression, but I might have to to get around this issue.