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 .
Why CanYouHandleThisFile not call?
Moderators: Hacker, petermad, Stefan2, white
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
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?
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?