View Single Post
  #13  
Old 22-09-2011, 13:38
KillerOh's Avatar
KillerOh KillerOh is offline
Registered User
 
Join Date: Oct 2009
Location: Brazil
Posts: 77
Thanks: 1
Thanked 1 Time in 1 Post
KillerOh is on a distinguished road
By looking the setup.ini file provided in the newest setup code, I've noticed the following:
Code:
FreeArcFile1={src}\Movies.cab;DestDir:{app};Disk:1;PrecSrep:0
It seems that switching that "0" to "1" will enable PreComp and SRep compressions.
Plus, by reading this:
Quote:
Originally Posted by yener90 View Post
PrecSrep feature:
first create a ARC file with no compression -> extension must be arc
then create precomp and at least srep file
compress srep file using freearc with the extension that you want.
IMPORTNANT the names must be always the same.

example: Deadisland.arc -> DeadIsland.pcf -> DeadIsland.srep -> DeadIsland.cab or DeadIsland.arc
I suppose that will do the trick.
I haven't seen the coding part yet, but I suppose that, if no "*.srep" file is present, then the IsDone functions will just "skip" that and start PreComp de-compress.

I'll enjoy the chance and ask if there is a way to make a "cab" file uncompress ONLY when we select a specific language.
I mean, let's consider that I've created three different cabs, "lang_eng.cab" (English), "lang_esp.cab" (Spanish) and "lang_ger.cab" (German). Is that possible to this installer to unpack only "lang_eng.cab" when select "english" in the lang selector, or "lang_esp.cab" when select "spanish" language, and so on?