IMT bug logged and investigated
Paolo Cutini reported a bug with the Create Zip Package function of IMT; if the file already exists, it adds files to the archive, instead of overwriting the archive as it should.
Checked this out, and it's a clear bug. Logged the bug on the bugs page of the site, and investigated in the code. This is the problem function, in the ZipMasterFunc.pas library:
function TufrmZipMasterFunc.ZipFiles(TheFiles: TWideStringList;
We need to amend these lines:
Archiver.ZipFileName := ZipFileName;
Archiver.AddOptions := [];
to add a file deletion:
Archiver.ZipFileName := ZipFileName;
if WidefileExists(ZipFileName) then
Archiver.EraseFile(ZipFileName, htdAllowUndo);
Archiver.AddOptions := [];
I'll get this done on Monday, and release a new version.