+[8.5b4] 7zip SFX & plugins

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

+[8.5b4] 7zip SFX & plugins

Post by *Skif_off »

How can we use plugins for 7zip SFX (7Zip Plugin or Total7zip)?
If remove TC7Z.DLL/TC7Z64.DLL/TC7ZIPIF.DLL and press Ctrl+PgDn, I receive errors File tc7zipif.dll not found! and Error in packed file *.exe! (TCx86) or only Error in packed file *.exe! with TCx64.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please do not remove the dlls. Just install the plugins as usual. TC will use the plugins when installed instead of the internal 7zip support.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler,
He means that he can't open SFX archives.
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

I am using the 7zip plug-in (0.7.6.5a) and i can open 7z SFX archives with Ctrl-PageDown.

This works in both 32-bit and 64-bit versions of TC8.5b4.

However, if i rename/move the DLLs mentioned as did the OP, i get the exact same error.

Ghisler is right - don't remove those DLLs, even if you have the 7zip plug-in installed.
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

I have tried to delete because I don't know how to force use plug-in.
If I remove file in 7z SFX (7-zip ver. 9.20, 7zip plug-in ver. 0.7.6.5a), I see error Functions not supported! - plug-in is not work (unlike TC8.01). wincmd.ini from 8.01 don't changes anything.

elgonzo
I don't know what I'm doing wrong :) Can you show section [PackerPlugins]?
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

Oh... deleting a file from a SFX 7z archive. My brain's not working and i am apparently blind for the color red...

I just tried, and no luck. It also gives a "Function not supported!" error :(

Seems to be the plug-in (just my guess...)


EDIT: It does not seem to be the plug-in.

If i disable the 7zip plug-in (using TC's internal routines), the same error still appears.
But now, even if i go into a normal solid or non-solid 7zip archive (not SFX) i get now the same error message as with SFX archives. So i guess it has something to do with TC's internal 7z handling. (Also moving-deleting the file out of the archive with F6 does not work.)

In a way it is logical that SFX archives are not handled by the plug-in by default, because the plug-ins are associated by file extensions, not file types.

Associating the 7zip plug-in with EXE file extension is actually a bad idea.
It works (i just tested), but then you cannot execute an EXE file anymore by simply pressing ENTER on it. Argh...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I see the problem - currently SFX archives are always opened by internal 7zip. You can see this with Alt+Enter on a file within the archive, the archive type is shown as "7zip (dll)". I will try to find a solution.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I will try to find a solution.
Maybe ask plugins if they can handle this file before using internal packer? Or an option to disable internal packer? Or to disable it if there are no DLLs?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm now asking plugins when there is one for extension "7z".
Author of Total Commander
https://www.ghisler.com
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

ghisler
02.10.13 Fixed: Open 7zip archives with other extension than .7z (e.g. .exe) with external plugin if there is one installed for 7z extension (32/64)
Everything works (unpack/edit), thank you very much.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for checking!
Author of Total Commander
https://www.ghisler.com
Post Reply