Total7zip

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

Moderators: white, sheep, Hacker, Stefan2

Post Reply
User avatar
jinsight
Junior Member
Junior Member
Posts: 50
Joined: 2003-02-25, 19:47 UTC
Location: Cleveland, Ohio, USA

Post by *jinsight » 2018-06-18, 16:57 UTC

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 x64 Version 1803
April 2018 Update (OS Build 17134.165)
TC 9.20 x64 and x86, Everything 1.4.1.895 (x64)

User avatar
MVV
Power Member
Power Member
Posts: 8130
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2018-06-18, 17:02 UTC

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
Junior Member
Junior Member
Posts: 50
Joined: 2003-02-25, 19:47 UTC
Location: Cleveland, Ohio, USA

Post by *jinsight » 2018-06-18, 19:33 UTC

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 x64 Version 1803
April 2018 Update (OS Build 17134.165)
TC 9.20 x64 and x86, Everything 1.4.1.895 (x64)

User avatar
petermad
Power Member
Power Member
Posts: 8058
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-06-18, 20:07 UTC

2jinsight
It works fine here with those paths.

Can you give the exact content of the error message?
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
jinsight
Junior Member
Junior Member
Posts: 50
Joined: 2003-02-25, 19:47 UTC
Location: Cleveland, Ohio, USA

Post by *jinsight » 2018-06-18, 21:18 UTC

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 x64 Version 1803
April 2018 Update (OS Build 17134.165)
TC 9.20 x64 and x86, Everything 1.4.1.895 (x64)

User avatar
petermad
Power Member
Power Member
Posts: 8058
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-06-18, 21:34 UTC

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
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
MVV
Power Member
Power Member
Posts: 8130
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2018-06-19, 04:30 UTC

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
Junior Member
Junior Member
Posts: 50
Joined: 2003-02-25, 19:47 UTC
Location: Cleveland, Ohio, USA

Post by *jinsight » 2018-06-20, 17:13 UTC

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 x64 Version 1803
April 2018 Update (OS Build 17134.165)
TC 9.20 x64 and x86, Everything 1.4.1.895 (x64)

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

Re: Total7zip

Post by *Akon » 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?

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3109
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp » 2018-09-30, 08:43 UTC

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 10 Home x64 October 2018 Update
Version 1809 (OS Build 17763.134)
TC 9.21a x64 and x86, Everything 1.4.1.921 (x64)

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

Re: Total7zip

Post by *Akon » 2018-09-30, 11:45 UTC

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 » 2018-09-30, 15:35 UTC

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 » 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

User avatar
Stefan2
Power Member
Power Member
Posts: 2175
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Total7zip

Post by *Stefan2 » 2018-09-30, 15:48 UTC

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 » 2018-09-30, 15:54 UTC

Oh, its flag combination, thx for quick answer!

Post Reply