Total7zip

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Post by *jinsight »

2MVV

How do I insert

F:\7-Zip\

into the xml

<path path_7z_dll="" path_7zG_exe="" />
<path64bit path_7zG_exe="" path_7z_dll="" />

Any help appreciated.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

For 32-bit 7-zip (that's required for 32-bit TC):

Code: Select all

<path path_7z_dll="F:\7-Zip\7z.dll" path_7zG_exe="F:\7-Zip\7zG.exe" />
For 64-bit 7-Zip (that's required for 64-bit TC and is optional for 32-bit TC under 64-bit Windows) fill attributes in the path64bit node in the same way.

You can use envvars in both attributes e.g. for specifying path relative to TC dir.
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Post by *jinsight »

2MVV

Former xml:
<?
<path path_7z_dll="" path_7zG_exe="" />
<path64bit path_7zG_exe="" path_7z_dll="" />
?>

New xml
<path path_7z_dll="F:\7-Zip\7z.dll" path_7zG_exe="F:\7-Zip\7zG.exe" />
<path64bit path_7zG_exe="F:\7-Zip_64\7zG.exe" path_7z_dll="F:\7-Zip_64\7z.dll" />

It does not work saying it can't find 7z.

Any ideas?
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2jinsight
It works fine here with those paths.

Can you give the exact content of the error message?
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Post by *jinsight »

2MVV

Two error boxes in sequence.

The first says "7-zip library is not found. Download 7-zip. http://www.7-zip.org/"

The second says "Error in packed file "The Name of the File To Be Opened""

I put back the original xml and return the 7-zip files to the Total&Zip plugin folder and the same file tried earlier opens.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Did you restart TC between editing the xml file and moving the 7zip files? - you have to do that, or else you have to remove the plugin from memory using the cm_UnloadPlugins command.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

This is how my config looks (I've cut some nodes):

Code: Select all

<?xml version="1.0"?>
<settings>
...
	<path path_7z_dll="%ProgramFiles%\7-Zip\7z.dll" path_7zG_exe="%ProgramFiles%\7-Zip\7zG.exe" />
	<path64bit path_7zG_exe="" path_7z_dll="" />
...
	<passwords save="0" />
	<formats save="1">
...
	</formats>
	<formatsDisabled>
		<format description="PE" guid="{23170F69-40C1-278A-1000-000110DD0000}" />
	</formatsDisabled>
</settings>
And yes, you have to edit XML when plugin is not loaded, e.g. open it for editing, close TC, save file and start TC again.
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Post by *jinsight »

2MVV

Once I saw your xml code:

...
<path path_7z_dll="%ProgramFiles%\7-Zip\7z.dll" path_7zG_exe="%ProgramFiles%\7-Zip\7zG.exe" />
<path64bit path_7zG_exe="" path_7z_dll="" />
...

I changed my xml code from

<path path_7z_dll="F:\7-Zip\7z.dll" path_7zG_exe="F:\7-Zip\7zG.exe" />
<path64bit path_7zG_exe="F:\7-Zip_64\7zG.exe" path_7z_dll="F:\7-Zip_64\7z.dll" />

to

<path64bit path_7zG_exe="F:\7-Zip_64\7zG.exe" path_7z_dll="F:\7-Zip_64\7z.dll" />

It then worked!

Thanks very much.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Akon
Junior Member
Junior Member
Posts: 10
Joined: 2018-09-24, 15:30 UTC

Re: Total7zip

Post by *Akon »

I need to pack and unpack directories/files with NTFS permissions (WIM-archives). With 7-Zip itself all works fine. The 7-Zip's console version suggests "-sni" parameter for that. The parameter must be specified while unpacking also. The GUI version suggests a checkbox.

I use installed 7-Zip app with proper patching Total7zip.xml to point to that external 7-Zip. While packing a directory to WIM-archive with the plugin when I press "Configure" and then choose "wim" format in 7-Zip's configuration dialog, after pressing "OK" error appears about impossibility to access temp file due to it's used by another progpam. When packing into 7z-archive (i.e. not WIM-archive) and doing all steps the same there is no problem. What might be wrong?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Akon wrote: 2018-09-30, 07:20 UTC I need to pack and unpack directories/files with NTFS permissions (WIM-archives). With 7-Zip itself all works fine. The 7-Zip's console version suggests "-sni" parameter for that. The parameter must be specified while unpacking also. The GUI version suggests a checkbox.

I use installed 7-Zip app with proper patching Total7zip.xml to point to that external 7-Zip. While packing a directory to WIM-archive with the plugin when I press "Configure" and then choose "wim" format in 7-Zip's configuration dialog, after pressing "OK" error appears about impossibility to access temp file due to it's used by another progpam. When packing into 7z-archive (i.e. not WIM-archive) and doing all steps the same there is no problem. What might be wrong?
You have to assign the wim extension in the TC packer dialog to the Total7zip plugin.
Then you can select that format while creating an archive and there is no need for the config step.
It works for me without problems for creating WIM archives.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Akon
Junior Member
Junior Member
Posts: 10
Joined: 2018-09-24, 15:30 UTC

Re: Total7zip

Post by *Akon »

It was done there. TC's "Pack files" diaolg contains command like this: "wim:e:\Test-7zip\Dir.wim". Further "Configure" button pressing needs to set packer flags, i.e. checkbox "Store files security".

I'm also interesting - how can I add flags to unpacker? To restore NTFS permissions I need that action. It seems there is no straightforward way since standard TC's dialog for unpacking contains no "Configure" button like for packing one.

And another doubt - when unpacking WIM-archive by TC's convenient way (Enter-and-Copy) - how to specify to restore NTFS permissions?
Akon
Junior Member
Junior Member
Posts: 10
Joined: 2018-09-24, 15:30 UTC

Re: Total7zip

Post by *Akon »

Does it mean that any 7-Zip CLI flags cannot be passed to underlying 7-Zip through Total7zip plugin?
Akon
Junior Member
Junior Member
Posts: 10
Joined: 2018-09-24, 15:30 UTC

Re: Total7zip

Post by *Akon »

And a bit offtop: What does mean a number (735 here) before TC's file accosiation:
[PackerPlugins]
7z=735,%COMMANDER_PATH%\Plugins\wcx\Total7zip\Total7zip.wcx
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Total7zip

Post by *Stefan2 »

Akon wrote: 2018-09-30, 15:45 UTC And a bit offtop: What does mean a number (735 here) before TC's file accosiation:
[PackerPlugins]
7z=735,%COMMANDER_PATH%\Plugins\wcx\Total7zip\Total7zip.wcx

Antwort: by *petermad » Fri Jun 11, 2010 13:01
The number is the sum of all DLL capabilities.
Total Commander will add the appropriate number on the first load of the DLL (wcx).

https://www.ghisler.ch/wiki/index.php?title=GetPackerCaps
:::GetPackerCaps:::
1: Can create new archives
2: Can modify existing archives
4: Can handle multiple files in one archive
8: Can delete files from archive
16: Supports the options dialog
32: Supports packing in memory
64: Detects archive type by content
128: Allows searching for text in archives
256: Don't open with Enter, only with Ctrl+PgDn
512: Supports encryption




 
Akon
Junior Member
Junior Member
Posts: 10
Joined: 2018-09-24, 15:30 UTC

Re: Total7zip

Post by *Akon »

Oh, its flag combination, thx for quick answer!
Post Reply