well done, gnozal! Now i can extract the file. And the progress value in the
Callback works also.
Unfortunately the FileInfo i receive with PureZIP_Archive_FileInfo() contains a
negative uncompressed filesize. But i'am sure, that you will get it.
Greetings ... Kiffi
The FileInfo structure has longs, as it is a ZLIB based structure. You will have to do a correction like : FileSize.q = FileInfo\unCompressedSize & $FFFFFFFF. I will add this in the manual.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Changes :
- PureZIP now supports files up to 4 GB size.
Note
ZLIB can handle files up to 4 Gbytes, but PB longs are signed [0 - 2 Gbytes]...
So if you expect PureZIP_FileInfo\CompressedSize > 2 Gbytes or PureZIP_FileInfo\unCompressedSize > 2 Gbytes,
use quads and convert signed to unsigned !
Example : Size.q = FileInfo\unCompressedSize & $FFFFFFFF
Thorsten1867 wrote:If I try to append a zip to my executable, the executable is killed and no longer works (zip is ok). I don't know, what's the error.
Yes, I noticed. I don't know what the problem is with #APPEND_STATUS_CREATEAFTER.
What I do : I simply copy the final ZIP at the end of the executable and it works.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Gnozal, PureZIP opens a SFX module only if the data is appended at the end? I ask you this because was trying to find a solution to have inside a settings file too... How does your library installer work? As i've seen, it doesn't create any temporary files .
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Inf0Byt3 wrote:As i've seen, it doesn't create any temporary files .
I add the installer information in a file in the ZIP (in my installer it's "File_Id.Diz"). This file is not extracted but the installer reads its content with PureZIP_Archive_ExtractMem().
Download http://people.freenet.de/gnozal/PureLVSORT_.zip and open PureLVSORT-Installer.exe in WInRAR or any other archiver : you will see the "File_Id.Diz" at the root of the archive.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).