7-zip plugin which supports LZMA2

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

7-zip plugin which supports LZMA2

Post by *hlloyge »

Hello all!

I was wondering if anyone knows when the plugin for 7-zip will support the new compression scheme 7-zip introduced quite some time ago, LZMA2. I migrated to Windows 7 during this weekend, and was thinking if I am going crazy when I tried to unpack software archives with the Total commander and getting Disk read error all the time, I thought it was some incompatibility in place, and then I remembered I packed them with LZMA2 compression... the benefits are the possibility to use more than 2 cores for compression, so I use that very often in 7-zip.

Thank you.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I suggest you to tweak Multiarc plugin for working with your 7-Zip program, so you will have all benefits of 7-Zip application because Multiarc will call your 7z.exe for archive-handling tasks (browse archive, pack/unpack). So, nothing will change for you, same archives, same work way, just another plugin.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1014
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

These settings still work.

I will add a couple of file types (eg ISO, UDF, MSLZ) in the next days.

Afaik 7-Zip is the only packer/plugin for TC that can handle pure UDF images at the moment.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

I will try to set it up. Thank you both.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Thank you, it works, I hope as it should - it presents me with 7z windows where I set up compression ratio, and it compresses the thing... is that OK?

EDIT

Well, id doesn't work with password protected archives :(
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ZoSTeR wrote:Afaik 7-Zip is the only packer/plugin for TC that can handle pure UDF images at the moment.
That's good, run to download latest 7-Zip. :roll:
hlloyge wrote:Well, id doesn't work with password protected archives :(
It is the main trouble of Multiarc - because archiver asks password in console window which Multiarc hides. You may try to enable console window in Multiarc settings.

Also there is an option for Multiarc about special parameter %S. Set in Multiarc.ini following:
[7-Zip]
AskMode=2
SkipLIST=0
After that Multiarc will ask you some parameter string for each archive operation. Here you may enter -pPaSsWoRd to specify archive password for 7-Zip utility (or to leave field blank). Parameter AskMode=2 tells to Multiarc that it should ask parameter always, SkipLIST=0 tells that it should ask parameter for LIST comamnd also (this is needed for archives with encrypted names). Also you should add in your LIST command additional parameter {%S} after l parameter. Or if you specify -p{%S}, you need to enter just password in Multiarc ask window.
Last edited by MVV on 2009-09-01, 08:46 UTC, edited 1 time in total.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1014
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Here's a little AutoIt script that intercepts the "Enter password:" prompt and displays an input box.

It just runs its command line parameter and passes thru the console input.

Just put it in front of every 7z.exe and 7zG.exe.

For example:

Code: Select all

List=c:\PathTo\7-Zip_PW.exe c:\PathTo\7-Zip\7z.exe -r0 l -- %AQA
Download with source
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I didn't think that AutoIt works with command-line input/output. Thanks for idea, I'll write for myself some little tool with similar feature. :)


Yeah, I'd made it. Light-weight, works fine for me, has no thousand of imports. :)

MIME-Version: 1.0
Content-Type: application/octet-stream; name="ConPaste.cab"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ConPaste.cab"

TVNDRgAAAAAvCgAAAAAAACwAAAAAAAAAAwEBAAEAAABNQgAASQAAAAEAAxUAFgAAAAAAAAAAIjtv
eCAAQ29uUGFzdGUuZXhlAKbVF4beCQAWW4CAjQEQA2AAADICVjQAAG8A2712tPbnWtSCxM5TCtmO
XVaYq0o5rXO7XXaXl7VlG0Rvz91t3Z573cu9EpDnZudIBo3JyKYssoTYEiRABZahWTYEXFQBkWOQ
ZRlkkU0YxI4iuIAGEJcAABEaMJgDAG8obLM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iH1gFGFbXUkUfeWsM8ewCA

Code: Select all

List="ConPaste.exe \"Enter password:\" %PQ l {%S} %AQA"
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Thank you all, I tried it, but it is not what I want.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1014
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

hlloyge wrote:Thank you all, I tried it, but it is not what I want.
Well what do you want then? Is something missing?
Unless someone updates the native plugin it's the only way to get new 7-Zip versions working.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Yes, I know - but I just don't like how it works altogether. Sorry :) thank you all for help.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I'll write for myself some little tool with similar feature
Thanks for providing your tool. To be able to browse and extract files from an encrypted archive, I put Conpast.exe in front of these Lines in Multiarc:

List=ConPaste.exe \"Enter password:\" %P -r0 l -- %AQA
Extract=ConPaste.exe \"Enter password:\" %P e -y -scsDOS -- %AQA @%LQ
ExtractWithPath=ConPaste.exe \"Enter password:\" %P x -y -scsDOS -- %AQA @%LQ

It is working, but if I extract whole archive (ALT+F9) then it asks for password 3 times. Is there any way to avoid this?
bigtimefan
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 22:18 UTC

Post by *bigtimefan »

[face=arial]Here is the plugin with LZMA2 support. [/face]
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Here is the plugin with LZMA2 support.
This plugin is buggy. On several archives I get errors while extracting. 7-zip plugin integrated in multiarc doesn't have such errors and works more reliable.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Matthias030 wrote:Thanks for providing your tool. To be able to browse and extract files from an encrypted archive, I put Conpast.exe in front of these Lines in Multiarc:

List=ConPaste.exe "Enter password:" %P -r0 l -- %AQA
Extract=ConPaste.exe "Enter password:" %P e -y -scsDOS -- %AQA @%LQ
ExtractWithPath=ConPaste.exe "Enter password:" %P x -y -scsDOS -- %AQA @%LQ

It is working, but if I extract whole archive (ALT+F9) then it asks for password 3 times. Is there any way to avoid this?
Sorry for late answer, I missed your post somehow. I think I may add checkbox to answer same string on all requests.
Post Reply