Why CanYouHandleThisFile not call?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vserd
Junior Member
Junior Member
Posts: 27
Joined: 2005-04-26, 13:30 UTC

Why CanYouHandleThisFile not call?

Post by *vserd »

Why CanYouHandleThisFile not call if extension registered in Wincmd.ini [PackerPlugins]?

As sample extension .cab have two different formats: MS CAB and InstallShield CAB.

If plugins can process only one of this format, error raised if try enter by Ctrl+PgDw, and archive has the another format .
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Use MultiArc Plugin, which can handle both types at once ...
#5767 Personal license
vserd
Junior Member
Junior Member
Posts: 27
Joined: 2005-04-26, 13:30 UTC

Post by *vserd »

I'm now about Multiarc, and on his debug I found this question.
If TC call CanYouHandleThisFile on extension on all plugins without registration on wincmd.ini, why TC not call this function if extension registered?

Another sample multiformat extension its .EXE. SFX-Archiver different types, Instalation, Program, Exe-Packers can have this extension. If registered this extension and plugin can handle a subrange format,
plugin can return BAD_ARCHIVE, and TC show error message, but another plugin can handle this archive.

If I correct determine the handle of process search plugin for archive:
1. Can TC handle file internaly? If not then analyse [packerPlugins]
2. Extension registered in [packerPlugins]
2.1. If Yes, then call plugin directly, without call CanYouHandleThisFile.
2.2. if No, for each plugin in [packerPlugins] call CanYouHandleThisFile.
2.2.1 If CanYouHandleThisFile return True, search stops.
2.2.2 if all plugins return False, then no actions.

Why TC on 2.1. not call CanYouHandleThisFile and not search another plugins as in 2.2?
Post Reply