Decompress Zip files with 7z OR 7zG packer

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

sscireca
Junior Member
Junior Member
Posts: 23
Joined: 2017-11-08, 22:48 UTC

Decompress Zip files with 7z OR 7zG packer

Post by *sscireca »

I want to report this TC behavior when using 7z or 7zG packer for ZIP files.
I set up these packers in the settings window (see two images)

1) Image: https://imgur.com/a/5BlV4dv
2) Image: https://imgur.com/a/5BlV4dv

The operation is to decompress the files contained within a ZIP file.
In the left window with ENTER I open the file to view its content and then select all the files.
I press F5 to copy the selected files (ALL) in the right window.
I get these two errors depending on whether I use 7z or 7zG

1) Image: https://imgur.com/a/4BgER2a
2) Image: https://imgur.com/a/UfIBsyL

I don't know if the assumptions of this operation are correct.

I assumed that using 7z or 7zG packer this operation was POSSIBLE

So I reported it
Last edited by sscireca on 2023-07-29, 10:24 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Decompress Zip files with 7z o 7zG packer

Post by *Horst.Epp »

Not confirmed here.

I use the following definition:
"C:\Program Files\7-Zip\7z.exe" -mcu=on

Also tested with
"C:\Program Files\7-Zip\7zg.exe" -mcu=on

No problem to pack or unpack any set of files and dirs with this definitions.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
sscireca
Junior Member
Junior Member
Posts: 23
Joined: 2017-11-08, 22:48 UTC

Re: Decompress Zip files with 7z o 7zG packer

Post by *sscireca »

I have tested on my system (a)

"C:\Program Files\7-Zip\7z.exe" -mcu=on
"C:\Program Files\7-Zip\7zg.exe" -mcu=on

(I dont know ... -mcu=on

but I confirm the error is again.

(a) Windows 11 Pro build 22621.2070
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Decompress Zip files with 7z o 7zG packer

Post by *Horst.Epp »

I don't know what's wrong in your system.
What version of 7zip you are using ?
I have 23.01 x64

Let's wait if others can reproduce your problem.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
sscireca
Junior Member
Junior Member
Posts: 23
Joined: 2017-11-08, 22:48 UTC

Re: Decompress Zip files with 7z o 7zG packer

Post by *sscireca »

Version 22.01 x64
Last edited by sscireca on 2023-07-28, 20:04 UTC, edited 1 time in total.
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Decompress Zip files with 7z o 7zG packer

Post by *AntonyD »

By the way, I can't find any explanations about the restrictions on entering additional command line parameters for 7z anywhere.
In the help it is TOO simply written that "It is possible to specify parameters like -mcu=on behind the program name."
What does it mean here "LIKE"? like what and from which FULL list of which params exactly?
https://ibb.co/5nvt3pq
Are we talking about these switches? Or are there other options we can add?
Or vice versa - the restriction is applied as a ban on four 'Add(Update)/Delete/Extract' file commands only?
Last edited by AntonyD on 2023-07-29, 07:42 UTC, edited 1 time in total.
#146217 personal license
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Decompress Zip files with 7z o 7zG packer

Post by *Horst.Epp »

2AntonyD
Christian explained in another thread that you can't add parameters like "a"
as TC will automatically add the relevant basic commands.
For all the others, you have to test if 7z accepts them in zip mode.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Decompress Zip files with 7z o 7zG packer

Post by *petermad »

I can confirm the bug as reported by sscireca for unpacking zip files - only I get both error messages when I use 7zg.exe: first "Unknown switch -d" and then "Not enough memory!". If I use 7z.exe I only get the message "Not enough memory!"

Tested with both 11.00rc1 32bit and 64bit and with 7zip v. 22.01 and 23.01
Tested with both files packed with TC's internal zip-packer (compression 9), and packed with 7zg.exe
Also tested with several previous TC 11 beta versions - same problem

These are my options when packing to zip archives with 7zip: https://tcmd.madsenworld.dk/7zipoptions.png

I use no switches or commands in the zip-packer/unpacker fields. My test files only have ANSI-characters, so no need for -mcu=on.


So far only tested under Window 7 and 10.

I have no problems packing files with zip-packer configured as 7zg.exe or 7z.exe
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
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Decompress Zip files with 7z o 7zG packer

Post by *petermad »

2sscireca
The links to the two images are the same!
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
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Decompress Zip files with 7z o 7zG packer

Post by *AntonyD »

2Horst.Epp
I read it - but again - the word "LIKE" is used there. Those there is no direct and clear enumeration - which flags / options are prohibited for use and the phrase that "everything that is NOT listed as prohibited 'above' is considered allowed for use in 7Z cmdline." In such a clear formulation, everything would be clear. And so, it turns out that my "experiments" with the selection of parameters can just run into some other "like -a" parameter, which will break the logic of Total. This is theoretically unacceptable.

2ghisler(Author)
Can you make a strict distinction between which commands/flags/switches... of those available on the 7z command line you are restricting use - only by full enumeration, not by the evasive phrase "LIKE..."?

2sscireca
btw - the topic's title imho contains typo:
Decompress Zip files with 7z OR 7zG packer
can you fix it?
Last edited by AntonyD on 2023-07-29, 11:19 UTC, edited 1 time in total.
#146217 personal license
sscireca
Junior Member
Junior Member
Posts: 23
Joined: 2017-11-08, 22:48 UTC

Re: Decompress Zip files with 7z OR 7zG packer

Post by *sscireca »

petermad wrote: 2023-07-28, 21:54 UTC I can confirm the bug as reported by sscireca for unpacking zip files - only I get both error messages when I use 7zg.exe: first "Unknown switch -d" and then "Not enough memory!". If I use 7z.exe I only get the message "Not enough memory!"

Tested with both 11.00rc1 32bit and 64bit and with 7zip v. 22.01 and 23.01
Tested with both files packed with TC's internal zip-packer (compression 9), and packed with 7zg.exe
Also tested with several previous TC 11 beta versions - same problem

These are my options when packing to zip archives with 7zip: https://tcmd.madsenworld.dk/7zipoptions.png

I use no switches or commands in the zip-packer/unpacker fields. My test files only have ANSI-characters, so no need for -mcu=on.


So far only tested under Window 7 and 10.

I have no problems packing files with zip-packer configured as 7zg.exe or 7z.exe
Yes you're wright !
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Decompress Zip files with 7z OR 7zG packer

Post by *Horst.Epp »

As said, no such errors here under Windows 11 and TC 11.00RC3
regardless which exe of 7zip I use.
Tested with various sets of large and small trees to archive into a zip archive.
Also tested with TC 11.00RC3 x86.
No glue, how others get these errors.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Decompress Zip files with 7z OR 7zG packer

Post by *petermad »

2Horst.Epp
Tested with various sets of large and small trees to archive into a zip archive.
The bug is not when packing the zip archive with 7z.exe or 7xg.exe - it is when UNpacking - remember do disable the option: "Always use internal unzipping (if possible)" - https://tcmd.madsenworld.dk/7zip_zip.png
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
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Decompress Zip files with 7z OR 7zG packer

Post by *Horst.Epp »

petermad wrote: 2023-07-29, 15:25 UTC 2Horst.Epp
Tested with various sets of large and small trees to archive into a zip archive.
The bug is not when packing the zip archive with 7z.exe or 7xg.exe - it is when UNpacking - remember do disable the option: "Always use internal unzipping (if possible)" - https://tcmd.madsenworld.dk/7zip_zip.png
I have tested packing and unpacking of course
but I had not disabled "Always use internal unzipping (if possible)"
Finally, error confirmed
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Decompress Zip files with 7z OR 7zG packer

Post by *petermad »

Horst.Epp wrote:Finally, error confirmed
Thanks :)
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
Post Reply