TDIZipWriter.CloseZipreturns the position of
ZipStreamright after the end of the ZIP archive. This value can be used to trim the stream or file in case extra data was previously written by
CloseCurrentEntrywhich failed and reset the stream position.
Delphi compilers with support for the
inline directive (starting with Delphi 2005) failed to compile DIZipWriter *.bpl packages for the Demo and Commercial editions. They generated a “[dcc32 Fatal Error] DIUtils: F2051 Unit DIContainers was compiled with a different version of DIUtils.StrSameIW”. Regular *.exe applications compiled without problems. The DIZipWriter Source Code also compiled to both *.bpl packages and *.exe applications with no problems.
TYuBZip2Compressorcompression engine to bzip2 1.0.8.
DI.incinclude file. Directly link in
TDIZipWriternow always descends from
TComponent. Affects source code only.
DI_No_Classescompiler directive. The
Classesunit is always used. Source code only.
DI_No_Range_Checkingcompiler directive to
DIC_Unsafe. Source code only.
TYuLzmaCompressorsets end of stream flag as required by recent versions of 7-Zip.
TDIWriter.Writecaused ZIP archives to be written incorrectly. Fixed.
TDIZipWriter.DataTypeproperty allows to determine the data type attribute for each ZIP entry. The options are
dtUnknown. For the latter,
TDIZipWriterdetermines the data type automatically. This new property was explicitly requested by some users who found that certain ZIP software apparently unzips differently depending on the data type.
OffSetparameter which specifies the final position of the Zip archive within the output file or stream. While
Offsetis usually zero, it might differ when appending a Zip archive to a SFX stub in order to create self extracting Zip archvies. There are SFX stubs freely available on the Internet.
NewZipFilenow raises an exception just as any other new .zip file which can not be created.