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
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Now first extraction of enycrypted archive takes still 3 times. But if i unpack archive again then it needs only 2 times of password input. Also I can't get it work that checkbox "don't ask again" is pre-activated. I have it to enable for every password input.

This is my multiarc string:
[7-ZIP]
Description="7-Zip"
Archiver=C:\Programme\wincmd\Packer\7zip\7z.exe
Extension=7z
ID=37 7A BC AF
IDPos=0x0, <seekid>
BatchUnpack=1
Start="^-------------------"
End="^-------------------"
Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"
List=ConPaste.exe \"Enter password:\" %P -r0 l -- %AQA
Extract=ConPaste.exe /s /h%AQA \"Enter password:\" %P e -y -scsDOS -- %AQA @%LQ
ExtractWithPath=ConPaste.exe /s /h%AQA \"Enter password:\" %P x -y -scsDOS -- %AQA @%LQ
Test=%P t -y -- %AQA
Delete=%P d -r -y -scsDOS -- %AQA @%LQ
;
;--- Use 7zG.exe instead of 7z.exe when adding or moving ---
;
Add=C:\Programme\wincmd\Packer\7zip\7zG.exe a -y -scsDOS -ad -- %AQA @%LQ
Move=C:\Programme\wincmd\Packer\7zip\7zG.exe u -y -scsDOS -ad -- %AQA @%LQ
SkipLIST=1
;
;AskHistory removed. Use GUI instead
Here is file to test. I see that problem is only when option "encrypt filenames" is set in 7-zip. Password for file is "abc"

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

N3q8ryccAAM0k9nDQAEAAAAAAAAoAAAAAAAAAF5hE21yCG9SRqu8R8ThET0euwTCAS0KKTu5CUso
wY7dVh4vm7wWUE5cD4guuAEftexuQ+mcnyEQFMrKBAU5g86RJHOB6RowabjJql/aMsulQvI6M4al
q6j0gx1qXO6DbYiDEFxN2eEfKs8I5nY7kh5WH2sObEZRef97kw7UJ2CgxA2RIteTNx2ndZ3HhPqh
B9CYndqI6DGtgrBxlIJKmQV1DGnRPjVvBgl5szql1zr3i5wTbm99zAJmLrkPgqYytmCtUtIYPy2w
A/XuPHDH2GRkVkjptsvNIPC1bG+P1roTCWJPQ+g6bz/Qn55PPEgN2Pn9PqTdN7GBSNi6a95p4guF
/pxfJGIcYRhGbnQhuGp7dy3UZNZfY5vRkx0vi59WfNBcz4GxKmz3qRVGSGICItUSL9KBiWL2ay58
6jc2dC+KS7r5NBcGgMABCYCAAAcLAQABJAbxBwEKUwfHv9ZsgQqD6wx8CgGQI9igAAA=
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, your List command doesn't sets initial checkbox state, also it does't pass /h parameter. :D You should use following List command:

Code: Select all

List=ConPaste.exe /s /h%AQ \"Enter password:\" %P -r0 l -- %AQA
Or even this:

Code: Select all

List="ConPaste.exe /s /h%AQ /c%AWQ \"Enter password\" %PQA l {%S} %AQA"
Only if all commands that call ConPaste send same /h parameter string, password is not asked multiple times. You need to modify all commands. And, to set initial checkbox state you need to pass /s parameter.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Oh, my mistake. Now it works perfect. Thx!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Great to hear this. :)

BTW I updated my tool again. Now it supports parameter /r that allows to clear cached password if it was typed incorrectly. So you may add ConPaste.exe /r to TC's Start menu and run it after entering wrong password - just run it and you may try to enter archive again, it will ask new password.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

"/r" is nice addition for conpaste.exe Now it's perfect and conpast+multiarc+7zip nearly feels like a real 7-zip plugin.
User avatar
Total7zip
Junior Member
Junior Member
Posts: 74
Joined: 2010-12-18, 07:54 UTC

Post by *Total7zip »

Hi!
I think "7-zip plugin which supports LZMA2", passwords and so on is my new
Total7zip =)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

7Zip plugin was also updated and supports LZMA2 now.
Post Reply