Synchronize tool and contents of TC installer

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Synchronize tool and contents of TC installer

Post 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.
Last edited by browny on 2024-02-04, 00:48 UTC, edited 2 times in total.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Syncronize tool and contents of TC installer

Post 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
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Syncronize tool and contents of TC installer

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Synchronize tool and contents of TC installer

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Synchronize tool and contents of TC installer

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Synchronize tool and contents of TC installer

Post 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
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Synchronize tool and contents of TC installer

Post by *browny »

How this problem resolves for .rar or .7z archives which also could be solid?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Synchronize tool and contents of TC installer

Post 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.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Synchronize tool and contents of TC installer

Post 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.
browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Synchronize tool and contents of TC installer

Post by *browny »

Great, seems to be working in RC5.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Synchronize tool and contents of TC installer

Post 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
---------------------------
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Synchronize tool and contents of TC installer

Post by *ghisler(Author) »

I prefer to show an error in this case.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Synchronize tool and contents of TC installer

Post by *browny »

Should it be CAB instead of ZIP in the error message?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Synchronize tool and contents of TC installer

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Synchronize tool and contents of TC installer

Post 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...
Last edited by AntonyD on 2024-02-11, 18:46 UTC, edited 1 time in total.
#146217 personal license
Post Reply