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"
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.
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.