Synchronize tool and contents of TC installer
Moderators: Hacker, petermad, Stefan2, white
Synchronize tool and contents of TC installer
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.
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.
Last edited by browny on 2024-02-04, 00:48 UTC, edited 2 times in total.
Re: Syncronize tool and contents of TC installer
It's works this way for ANY directory with CAB archive on other side.
From TC help:
From TC help:
NO BUG - rather lack of functionDialog box: Synchronize directories
...
Note: You can synchronize the following combinations:
- Two directories
- A directory and an archive
- Two archives (not all types by content)
Re: Syncronize tool and contents of TC installer
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.
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.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Synchronize tool and contents of TC installer
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.
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
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.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Synchronize tool and contents of TC installer
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
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Synchronize tool and contents of TC installer
How this problem resolves for .rar or .7z archives which also could be solid?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Synchronize tool and contents of TC installer
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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Synchronize tool and contents of TC installer
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.
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
Great, seems to be working in RC5.
Re: Synchronize tool and contents of TC installer
Change confirmed in TC 11.03rc5history.txt wrote:05.02.24 Fixed: Synchronize dirs: CAB archives couldn't be compared by content (32/64)

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
---------------------------
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Synchronize tool and contents of TC installer
I prefer to show an error in this case.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Synchronize tool and contents of TC installer
Should it be CAB instead of ZIP in the error message?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Synchronize tool and contents of TC installer
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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Synchronize tool and contents of TC installer
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...
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...
Last edited by AntonyD on 2024-02-11, 18:46 UTC, edited 1 time in total.
#146217 personal license