+8.5b3 Support for 7z

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

+8.5b3 Support for 7z

Post by *gora »

Ran some tests ...

TC 8.50b3 x64, Win7 x64

Modules20.exe - 7zSFX, compiled version of 7 -Zip 9.20 ,
Modules30.exe - 7zSFX, compiled version of 7 -Zip 9.30
Link : https://dl.dropboxusercontent.com/u/35142695/Modules_Public_sl2_130912_14-00.7z

The results of 8 tests

TC without plug-ins , TC7Z64.DLL ( Included) :
1 Modules20.exe opened by Ctrl + PageDown
2 Modules30.exe NOT open by Ctrl + PageDown
=========================================
TC without plug-ins , TC7Z64._DLL ( disabled, renamed )
3 Modules20.exe by Ctrl + PageDown get an error window :

Code: Select all

---------------------------
Total Commander
---------------------------
Error in packed file c:\1\Modules20.exe!
---------------------------
OK
---------------------------
4 Modules30.exe NOT open by Ctrl + PageDown
=========================================

TC with the plugin 7zip_0.7.6.5a, TC7Z64.DLL ( Included) :
5 Modules20.exe by Ctrl + PageDown get an error window :

Code: Select all

---------------------------
Total Commander
---------------------------
Error in packed file c:\1\Modules20.exe!
---------------------------
OK
---------------------------
6 Modules30.exe opened by Ctrl + PageDown
=========================================

TC with the plugin 7zip_0.7.6.5a, TC7Z64._DLL ( disabled, renamed )
7 Modules20.exe by Ctrl + PageDown get an error window :

Code: Select all

---------------------------
Total Commander
---------------------------
Error in packed file c:\1\Modules20.exe!
---------------------------
OK
---------------------------
8 Modules30.exe opened by Ctrl + PageDown
=========================================

9 Multi-volume 7z archives. You can open the archive, but it is empty .
10 In the file descript.ion there is no description of the purpose files:
TC7Z.DLL
TC7Z64.DLL
TC7ZIPIF.DLL
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, 7zip SFX modules aren't yet supported by the internal unpacker. They will be supported in a later beta.
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,
It is interesting that some SFX 7Z may be opened with TC internal unpacker while some aren't.
E.g. this one (Windows 7 write.exe packed with 32-bit 7-Zip 9.20 with standard SFX module) TC opens with internal unpacker even when I have Total7zip installed!
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

ghisler(Author) wrote:Sorry, 7zip SFX modules aren't yet supported by the internal unpacker. They will be supported in a later beta.
Maybe you will consider also that:
- 7zip will be full supported (soon or later)

Why you don't add the path to the executable file (Program Files\7-zip\7zFM.exe) like Arj, lha, WinRAR, obsolete UC2 or ACE.
In my opinion UC2 is so old and obsolete and can be changed with 7zip.
It will be a huge step forward, IMO.
My Best Wishes,

Eugen
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Not 7zFM.exe, it is only file manager, but 7zG.exe, it is GUI packer/unpacker. It uses command line similar to 7z.exe, special option -ad may be used to display packer options dialog.

I think it would be nice to add scroller (TScrollBox component) to TC packer configuration page so more packers would fit into that page.
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

2ghisler(Author)
gora wrote:9 Multi-volume 7z archives. You can open the archive, but it is empty
?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC is currently looking for the following signature:
37 7A BC AF 27 1C 00 03
however, the files which don't work contain
37 7A BC AF 27 1C 00 04

I can't just use 37 7A BC AF 27 1C 00 because it occurs in the SFX module alone without any data. Any ideas what the difference between these two is? Maybe there are even more?
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,
Does 7z library skip SFX module itself? If yes, you can simply pass file with 37 7A BC AF 27 1C 00 to it because it is a 7z archive (doesn't matter if it is SFX or not).
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

The first 6 bytes - the signature { 37 7A BC AF 27 1C }
The next 2 bytes - version of the format {Major, Minor}: 7-Zip 9.20 writes here { 0, 3 }, and 7-Zip 9.30a wrote { 0, 4 };
Need to check BOTH variants: { 37 7A BC AF 27 1C 00 03 } OR { 37 7A BC AF 27 1C 00 04 }
User avatar
deus-ex
Power Member
Power Member
Posts: 979
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex »

ghisler(Author) wrote:TC is currently looking for the following signature:
37 7A BC AF 27 1C 00 03
however, the files which don't work contain
37 7A BC AF 27 1C 00 04
TC also throws an 'access denied on target file" error for every subfolder of an 7-Zip archive with header 37 7A BC AF 27 1C 00 02 (7-Zip v4.43, v4.57).
The contents and folder structure of theses archives are completely unpacked nevertheless, just the subfolders itself don't get their date/time stamp restored.
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 just checked, 37 7A BC AF 27 1C 00 is not present in the SFX modules themselves! So checking for that should be sufficient.

2deus-ex
Does this concern only self-extracting EXE files, or all files? If all files, can you send me a small test file to support at ghisler dot com, please?
Author of Total Commander
https://www.ghisler.com
User avatar
deus-ex
Power Member
Power Member
Posts: 979
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex »

@ghisler

Hi Christian,
I detected this issue using normal archives, I did not test for SFX-archives. Please find a small example archive attached below.


Steps to recreate the archive:
  • Press [SHIFT+F4] to create a new file dummy.xxe
  • Copy/paste the content of the code box below into file dummy.xxe
  • Decode dummy.xxe (Main menu - Files - Decode file).

Code: Select all

begin 644 Test_archive_created_with_7-Zip_v443.7z
hBrewfmQQ++7GSwIdR++++++++++V++++++++++Ff-y+++64kW6FiEaX1ypRN
h4QYjTOT49aZ5bioWaWU4XGUt7+Fofylhw1iA1e0UyGoypZhZwiNgmFUsK0bE
hT8bsowTeiRsB60XSVZv0kyRMcgxQG7zzlr4HYhV4e2txH2lGPf2jGd9xIkAL
hyhi1qOzlIf9lCRz++-Q4++27R++50k2++GA1+E23LE+2+++AUH28+RlEg2++
-++++
+
end
sum -r/size 50819/181
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

ghisler(Author) wrote: 37 7A BC AF 27 1C 00 is not present in the SFX modules themselves! So checking for that should be sufficient.
The files 7z.sfx, 7zCon.sfx (version 9.30), this signature appears twice! :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2gora
I tried the sfx files in Modules20.exe and Modules30.exe - no problem.
Author of Total Commander
https://www.ghisler.com
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

2ghisler(Author)
Sorry, I did not understand.
In these files, there is no signature or you can not reproduce the problem from the first post?
Post Reply