Just a hint.
With PureZIP you don't need a temp file. If your SFX is STUB(EXE)+ARCHIVE(ZIP), you can directly extract from the SFX (recognized by PureZIP as an archive).
Thanks Inf0Byt3.
When I have tryed to compress AceUtilites.exe "au.exe" size: 1.386.496 bytes - everything goes fine, when extracted size is: 1.333.248 bytes and file is damaged. Same thing with "ACDSee8Pro.exe" size: 14.233.600 bytes > extracted: 13.668.352 bytes. Method used to cempres these files: I have created empty folder on Desktop, added "ACDSee8Pro.exe", for compression I have selected that folder.
Oh, so that was it... Thanks for the reference, Gnozal, I'll repack PureSFX and upload it.
[Update]
Same links, fixed all the bugs and included PureZIP Beta .
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Hey again Infobyte, are you able to include the 'Beta' version of PureZIP? (The library that is) I can't seem to run it with the latest version of PureZIP.
..::Origin::.. wrote:Hey again Infobyte, are you able to include the 'Beta' version of PureZIP? (The library that is) I can't seem to run it with the latest version of PureZIP.
Could you give more details ? What's the problem?
The latest PureZIP version installs the thread-safe lib version in subsystem 'UserLibThreadSafe'. So if you have thread-safe enabled, either use jaPBe (is automatic) or add this subsystem in the PBIDE in order to use the correct PureZIP version.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Error: PureZIP_Callback() is not a function, array, or linked list
EDIT: Acctualy, Thats the only error.
EDIT2: Okay, taking a closer look at it, I don't seem to require that line. What does it do anyway? I'm not familiar with the PZ library.
About the callback :
Old function PureZIP_SetCallback() was renamed to PureZIP_SetProgressionCallback(), and there is a new function PureZIP_SetCompressionCallback().
PureZIP_SetProgressionCallback() wrote:Set PureZIP progression callback address for the functions :
- PureZIP_ExtractFiles()
- PureZIP_AddFiles() The callback is called each time a new file is processed.
Usefull to indicate the progress when many files are packed / unpacked.
PureZIP_SetCompressionCallback() wrote:Set PureZIP (de)compression callback address for the functions :
- PureZIP_Archive_Compress()
- PureZIP_Archive_Extract()
- PureZIP_ExtractFile()
- PureZIP_AddFile()
- PureZIP_ExtractFiles()
- PureZIP_AddFiles() The callback is called in realtime during compression or decompression.
Usefull to indicate the progress when a big file is packed / unpacked.
See the new MiniZIP/MiniUNZIP sources for an example using both callbacks.