namquang93
Новичок
thank Mailchik, I understand now. And what about CfgFile parameter, I don't know how to use it. I think if I use some common external compressor such as precomp, srep, that parameter is not required because cls-precomp.dll and cls-srep.dll done that. But if I want to use another strange/custom external compressor, for example, uharc, how can I do that. I have tried compress with arc.ini like this
and it compressed everything fine, same ratio as when I use uharc only. But when I use isdone to extract from the test compressed file, I have included arc.ini in [Files] section, and extract in into {tmp}, and extract the test compressed using the following command
the installer crashed. I tried included uharc.exe also in installer but it still did not work. In the extracted folder I found a file $$arcdatafile$$.tmp, it seems that arc is extracted but uha is not. What was my mistake. I also found that I can create a custom cls-*.dll, do I have to do that or I can use arc.ini as CfgFile to extract custom external compressor archives. Thanks for reading, your isdone project is awesome .
Код:
[External compressor:srep] ;options = l%d (minimal match length, default=512) header = 0 packcmd = srep {options} -a4 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp [External compressor:precomp] header = 0 packcmd = precomp -slow {options} -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp [External compressor:uharc] header = 0 packcmd = uharc a -d1 -mx -mm+ -md8192 -b1024 $$arcpackedfile$$.tmp $$arcdatafile$$.tmp unpackcmd = uharc x $$arcpackedfile$$.tmp $$arcdatafile$$.tmp"
Код:
if not ISArcExtract ( 0, 0, Directory + 'data.bin', ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
Последнее редактирование: