Page 1 of 2

Synchronize tool and contents of TC installer

Posted: 2024-02-03, 16:37 UTC
by browny
Comparing files in TC directory with internals of install.cab in TC's installer never shows anything else but question marks. Checkboxes "by content" and "ignore date" are marked.
Everything else seems fine - there are file time stamps, sizes; files could be viewed in Lister and compared in Compare by content tool.
The reason for this peculiarity is unclear.

Edit. The main issue is that equal files still have a question mark, never an equal sign.

Re: Syncronize tool and contents of TC installer

Posted: 2024-02-03, 16:59 UTC
by Gral
It's works this way for ANY directory with CAB archive on other side.
From TC help:
Dialog box: Synchronize directories
...
Note: You can synchronize the following combinations:
- Two directories
- A directory and an archive
- Two archives (not all types by content)
NO BUG - rather lack of function

Re: Syncronize tool and contents of TC installer

Posted: 2024-02-03, 22:11 UTC
by petermad
2browny
It is the same if you copy the install.cab file to a folder on the harddisk and do the compare there - I think it has to do with the fact that TC cannot copy files to a cab file.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-04, 01:00 UTC
by browny
TC help on Synchronize tool does not mention any special treatment of .cab files.

Synchronize tool can update files on disk by extracting from .cab archive.
There are no technical barriers for comparing files if Lister and Compare by contents are working within Synchronize tool.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-04, 02:40 UTC
by petermad
Since TC cannot write to cab files, syncronization can only go from cab-file to disk. But apart from that I agree that TC should be able to compare the files by content - the sync tool does compare two files if you press Ctrl+F3 , so why not during the compare operation.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-04, 10:05 UTC
by ghisler(Author)
Compare by content isn't currently done with files in CAB files. The problem is that CAB files are solid archives, which makes it very slow to compare files out of order.

Moderator message

Moved to suggestions

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-04, 10:37 UTC
by browny
How this problem resolves for .rar or .7z archives which also could be solid?

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-05, 08:11 UTC
by ghisler(Author)
I'm doing special processing for 7zip and rar if they are solid archives, like comparing in the archive order when there is just one archive, or comparing hashes when there are two. I didn't see any reason to add this for CAB too because you can't modify CAB archives in TC. I will try to enable the method also for CAB files.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-05, 11:05 UTC
by browny
Thanks.
Sync tool also could be used for comparison only or for updating files on disk. Hence capability to compare files even in non-modifiable archives would be beneficial.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-08, 20:19 UTC
by browny
Great, seems to be working in RC5.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-08, 23:42 UTC
by petermad
history.txt wrote:05.02.24 Fixed: Synchronize dirs: CAB archives couldn't be compared by content (32/64)
Change confirmed in TC 11.03rc5 :-)

Would it be possible to disable copying in the direction of the .cab file, since TC cannot write to it anyway.

Currently, if I accidently try to synchronize TO the cab file I get the error:
---------------------------
Error creating ZIP!
---------------------------
ZIP file contains errors or has unknown format, cannot change!
---------------------------
OK
---------------------------

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-09, 09:00 UTC
by ghisler(Author)
I prefer to show an error in this case.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-09, 10:23 UTC
by browny
Should it be CAB instead of ZIP in the error message?

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-09, 12:22 UTC
by ghisler(Author)
The error actually comes from the internal ZIP packer, which fails to open the existing file (because it's not a ZIP file) and then shows this error. There is no CAB packer to be called.

Re: Synchronize tool and contents of TC installer

Posted: 2024-02-09, 15:45 UTC
by AntonyD
If there is NO any CAB packer/unpacker- so HOW we can work with CAB archive content????
BUT if we CAN somehow to work with it - so obviously that any errors related to the process
of "unpacking" the any CAB archive should use only CAB name...