Badden

New Member
Mình đọc trên diễn đàn cách tạo portable bằng ThinApp vã đã tạo thành công một phần mềm (nó chạy ok), mình cho nó chạy, sau khi exit khỏi phần mềm thì nó tạo file phát sinh ngay trong thư mục chứa phần mềm. Trong khi phần mềm portable khác mình down trên mạng về chạy thì không có file phát sinh như vậy, mình muốn khắc phục nhưng không biết cách, ai biết cách chỉ với, mình Thank nhiều.
 

Rocky

New Member
Hinh nhu phat sinh 1 lan thoi,do luu dieu chinh.nhung phan mem portable no thuong giai nen file vao thu muc :C:\Documents and Settings\UserXP\Local Settings 1 lan duy nhat. Mot so thi giong nhu ban.

Minh lam portable thuong khong tao file *.exe ,ma chi copy nhung file moi trong system 32 vao thu muc cai dat.
 

khaigiac

New Member
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
 

Các chủ đề có liên quan khác

Top