How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

Hello!

So the Topic title says I guess almost everything: I want to make 7-Zip (the lates version) my "default" archive packer/unpacker for both .zip and .7z archive files in TC.

So ask for anyone here who could, to help me in this modification...

Thank you!
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *petermad »

You can set 7-zip as default packer this way:

Open "Configuration" -> "Options..." -> "Zip packer"
In the field "ZIP packer:" enter the full path to your 7zg.exe file.
Remove the x in "Use internal ZIP packer" box and put an x in the box "7z".

You cannot do the same for the unpacker, because TC sends parameters to the external zip-unpacker and those parameters are not recognized by 7-zip.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6954
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Horst.Epp »

I have

Configuration / Zip packer
Zip packer: "C:\Program Files\7-Zip\7z.exe" -mcu=on
Use internal ZIP packer x 7Z

But I prefer 2 buttons to Pack / Unpack only in 7z format.

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a "%T%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y
C:\Program Files\7-Zip\7zFM.exe
Pack selected to target

0
-1

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
x  %P%N -o"%T"
C:\Program Files\7-Zip\7zFM.exe,1
Uncompress to Target

0
-1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

petermad wrote: 2024-07-15, 15:31 UTC You cannot do the same for the unpacker, because TC sends parameters to the external zip-unpacker and those parameters are not recognized by 7-zip.
Isn't there any workaround for this?
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

Horst.Epp wrote: 2024-07-15, 15:35 UTC I have

Configuration / Zip packer
Zip packer: "C:\Program Files\7-Zip\7z.exe" -mcu=on
Use internal ZIP packer x 7Z

But I prefer 2 buttons to Pack / Unpack only in 7z format.

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a "%T%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y
C:\Program Files\7-Zip\7zFM.exe
Pack selected to target

0
-1

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
x  %P%N -o"%T"
C:\Program Files\7-Zip\7zFM.exe,1
Uncompress to Target

0
-1
What does the parameter -mcu=on means/does in this case?

And I'm noter really understand the "code" part after "But I prefer 2 buttons to Pack / Unpack only in 7z format."

Could you explain what and how to do that and how does it exactly work?

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

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Horst.Epp »

The Code parts are TC buttons.
Use the Select All and copy function of such a code section.
Use paste in the context menu of your TC Button bar to create such a button.

The -mcu=on parameter is explained in the 7z help as
7-Zip uses UTF-8 for file names that contain non-ASCII symbols.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

Horst.Epp wrote: 2024-07-15, 16:34 UTC The Code parts are TC buttons.
Use the Select All and copy function of such a code section.
Use paste in the context menu of your TC Button bar to create such a button.

The -mcu=on parameter is explained in the 7z help as
7-Zip uses UTF-8 for file names that contain non-ASCII symbols.
Ok, thanks, I had make them work now, but the second "unpacker" code doesn't work exactly the way I would prefer: It can extract only the full archive, and doesn't work, when I'm trying to extract juts some specific files from the archive (it gives "The function cannot be used with packed files!" error by TC).

So can you give me a code, that can do both extract full archives at once and also can extract just those specific files that I would select from an archive?

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

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Horst.Epp »

Peter18 wrote: 2024-07-16, 05:48 UTC Ok, thanks, I had make them work now, but the second "unpacker" code doesn't work exactly the way I would prefer: It can extract only the full archive, and doesn't work, when I'm trying to extract juts some specific files from the archive (it gives "The function cannot be used with packed files!" error by TC).

So can you give me a code, that can do both extract full archives at once and also can extract just those specific files that I would select from an archive?

Thanks again!
There is no special button necessary for this.
Just enter the archive and copy whatever file or dir you want.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

Horst.Epp wrote: 2024-07-16, 06:37 UTC
Peter18 wrote: 2024-07-16, 05:48 UTC Ok, thanks, I had make them work now, but the second "unpacker" code doesn't work exactly the way I would prefer: It can extract only the full archive, and doesn't work, when I'm trying to extract juts some specific files from the archive (it gives "The function cannot be used with packed files!" error by TC).

So can you give me a code, that can do both extract full archives at once and also can extract just those specific files that I would select from an archive?

Thanks again!
There is no special button necessary for this.
Just enter the archive and copy whatever file or dir you want.
But this way it will only use the TC's default unpacker, not the 7-Zip for unpacking the files. And especially in the case of 7z archives it's much-much slower, than 7-zip. That's the reason i want to use rather the 7-Zip for bot packing and unpacking integrated somehow in TC.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6954
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Horst.Epp »

Peter18 wrote: 2024-07-16, 07:03 UTC But this way it will only use the TC's default unpacker, not the 7-Zip for unpacking the files. And especially in the case of 7z archives it's much-much slower, than 7-zip. That's the reason i want to use rather the 7-Zip for bot packing and unpacking integrated somehow in TC.
If you have the Total7zip plugin installed,
it will be used for packing / unpacking.
The plugin config can be set to use your installed 7zip
so it always has the actual version.
I also have replaced the 64 plugin sub-dir with a hardlink to C:\Program Files\7-Zip\

My plugin config Total7zip.xml looks like this:

Code: Select all

<?xml version="1.0"?>
<settings>
	<lister_plugin fontColor="0" bgColor="16777215" fontSize="10" fontFx="0" font="Courier New" />
	<gui lang="" />
	<debug logLevel="0" />
	<path path_7z_dll="7z.dll" path_7zG_exe="7zG.exe" />
	<path64bit path_7zG_exe="c:\Program Files\7-Zip\7zG.exe" path_7z_dll="" />
	<compression save="1" sfx="7z.sfx" updateSfx="0" askByContent="0" askByContentTimeout="1" alwaysWait7zip="1" extractToTempCount="20" deleteToRecycleBin="1" keySimpleMode="-1">
		<settings_7zip Level="0" Archiver="7z" ShowPassword="0" EncryptHeaders="1">
			<Options>
				<formatOptions FormatID="7z" Level="9" Dictionary="67108864" Order="64" BlockSize="34" NumThreads="8" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="BROTLI" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="bzip2" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="gzip" Level="5" Dictionary="4294967295" Order="32" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="wim" Level="4294967295" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="zip" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="ZSTD" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
			</Options>
		</settings_7zip>
	</compression>
	<passwords save="0" />
	<formats save="1">
		<format description="zip" guid="{23170F69-40C1-278A-1000-000110010000}">
			<ext val="7z" />
			<ext val="apk" />
			<ext val="appx" />
			<ext val="dat" />
			<ext val="docx" />
			<ext val="epub" />
			<ext val="ipa" />
			<ext val="jar" />
			<ext val="jmod" />
			<ext val="ods" />
			<ext val="odt" />
			<ext val="xlsx" />
			<ext val="xpi" />
			<ext val="z01" />
			<ext val="zip" />
			<ext val="zipx" />
		</format>
		<format description="bzip2" guid="{23170F69-40C1-278A-1000-000110020000}">
			<ext val="bz2" />
			<ext val="bzip2" />
			<ext val="tbz" />
			<ext val="tbz2" />
		</format>
		<format description="Rar" guid="{23170F69-40C1-278A-1000-000110030000}">
			<ext val="r00" />
			<ext val="rar" />
		</format>
		<format description="Arj" guid="{23170F69-40C1-278A-1000-000110040000}">
			<ext val="arj" />
		</format>
		<format description="Z" guid="{23170F69-40C1-278A-1000-000110050000}">
			<ext val="taz" />
			<ext val="z" />
		</format>
		<format description="Lzh" guid="{23170F69-40C1-278A-1000-000110060000}">
			<ext val="lha" />
			<ext val="lzh" />
		</format>
		<format description="7z" guid="{23170F69-40C1-278A-1000-000110070000}">
			<ext val="7z" />
			<ext val="exe" />
		</format>
		<format description="Cab" guid="{23170F69-40C1-278A-1000-000110080000}">
			<ext val="cab" />
		</format>
		<format description="Nsis" guid="{23170F69-40C1-278A-1000-000110090000}">
			<ext val="exe" />
			<ext val="nsis" />
		</format>
		<format description="lzma" guid="{23170F69-40C1-278A-1000-0001100A0000}">
			<ext val="lzma" />
		</format>
		<format description="lzma86" guid="{23170F69-40C1-278A-1000-0001100B0000}">
			<ext val="lzma86" />
		</format>
		<format description="xz" guid="{23170F69-40C1-278A-1000-0001100C0000}">
			<ext val="txz" />
			<ext val="xz" />
		</format>
		<format description="Ppmd" guid="{23170F69-40C1-278A-1000-0001100D0000}">
			<ext val="pmd" />
		</format>
		<format description="zstd" guid="{23170F69-40C1-278A-1000-0001100E0000}">
			<ext val="tzst" />
			<ext val="zst" />
		</format>
		<format description="LP" guid="{23170F69-40C1-278A-1000-000110C10000}">
			<ext val="img" />
			<ext val="lpimg" />
		</format>
		<format description="Sparse" guid="{23170F69-40C1-278A-1000-000110C20000}">
			<ext val="img" />
			<ext val="simg" />
		</format>
		<format description="APFS" guid="{23170F69-40C1-278A-1000-000110C30000}">
			<ext val="apfs" />
			<ext val="img" />
		</format>
		<format description="VHDX" guid="{23170F69-40C1-278A-1000-000110C40000}">
			<ext val="avhdx" />
			<ext val="vhdx" />
		</format>
		<format description="Base64" guid="{23170F69-40C1-278A-1000-000110C50000}">
			<ext val="b64" />
		</format>
		<format description="COFF" guid="{23170F69-40C1-278A-1000-000110C60000}">
			<ext val="obj" />
		</format>
		<format description="Ext" guid="{23170F69-40C1-278A-1000-000110C70000}">
			<ext val="ext" />
			<ext val="ext2" />
			<ext val="ext3" />
			<ext val="ext4" />
			<ext val="img" />
		</format>
		<format description="VMDK" guid="{23170F69-40C1-278A-1000-000110C80000}">
			<ext val="vmdk" />
		</format>
		<format description="VDI" guid="{23170F69-40C1-278A-1000-000110C90000}">
			<ext val="vdi" />
		</format>
		<format description="QCOW" guid="{23170F69-40C1-278A-1000-000110CA0000}">
			<ext val="qcow" />
			<ext val="qcow2" />
			<ext val="qcow2c" />
		</format>
		<format description="GPT" guid="{23170F69-40C1-278A-1000-000110CB0000}">
			<ext val="gpt" />
			<ext val="mbr" />
		</format>
		<format description="Rar5" guid="{23170F69-40C1-278A-1000-000110CC0000}">
			<ext val="r00" />
			<ext val="rar" />
		</format>
		<format description="IHex" guid="{23170F69-40C1-278A-1000-000110CD0000}">
			<ext val="ihex" />
		</format>
		<format description="Hxs" guid="{23170F69-40C1-278A-1000-000110CE0000}">
			<ext val="hxi" />
			<ext val="hxq" />
			<ext val="hxr" />
			<ext val="hxs" />
			<ext val="hxw" />
			<ext val="lit" />
		</format>
		<format description="TE" guid="{23170F69-40C1-278A-1000-000110CF0000}">
			<ext val="te" />
		</format>
		<format description="UEFIc" guid="{23170F69-40C1-278A-1000-000110D00000}">
			<ext val="scap" />
		</format>
		<format description="UEFIf" guid="{23170F69-40C1-278A-1000-000110D10000}">
			<ext val="uefif" />
		</format>
		<format description="SquashFS" guid="{23170F69-40C1-278A-1000-000110D20000}">
			<ext val="squashfs" />
		</format>
		<format description="CramFS" guid="{23170F69-40C1-278A-1000-000110D30000}">
			<ext val="cramfs" />
		</format>
		<format description="APM" guid="{23170F69-40C1-278A-1000-000110D40000}">
			<ext val="apm" />
		</format>
		<format description="MsLZ" guid="{23170F69-40C1-278A-1000-000110D50000}">
			<ext val="mslz" />
		</format>
		<format description="FLV" guid="{23170F69-40C1-278A-1000-000110D60000}">
			<ext val="flv" />
		</format>
		<format description="SWF" guid="{23170F69-40C1-278A-1000-000110D70000}">
			<ext val="swf" />
		</format>
		<format description="SWFc" guid="{23170F69-40C1-278A-1000-000110D80000}">
			<ext val="swf" />
		</format>
		<format description="NTFS" guid="{23170F69-40C1-278A-1000-000110D90000}">
			<ext val="img" />
			<ext val="ntfs" />
		</format>
		<format description="FAT" guid="{23170F69-40C1-278A-1000-000110DA0000}">
			<ext val="fat" />
			<ext val="img" />
		</format>
		<format description="MBR" guid="{23170F69-40C1-278A-1000-000110DB0000}">
			<ext val="mbr" />
		</format>
		<format description="VHD" guid="{23170F69-40C1-278A-1000-000110DC0000}">
			<ext val="vhd" />
		</format>
		<format description="PE" guid="{23170F69-40C1-278A-1000-000110DD0000}">
			<ext val="dll" />
			<ext val="exe" />
			<ext val="sys" />
			<ext val="tmp" />
		</format>
		<format description="ELF" guid="{23170F69-40C1-278A-1000-000110DE0000}">
			<ext val="elf" />
		</format>
		<format description="MachO" guid="{23170F69-40C1-278A-1000-000110DF0000}">
			<ext val="macho" />
		</format>
		<format description="Udf" guid="{23170F69-40C1-278A-1000-000110E00000}">
			<ext val="img" />
			<ext val="iso" />
			<ext val="udf" />
		</format>
		<format description="Xar" guid="{23170F69-40C1-278A-1000-000110E10000}">
			<ext val="pkg" />
			<ext val="xar" />
			<ext val="xip" />
		</format>
		<format description="Mub" guid="{23170F69-40C1-278A-1000-000110E20000}">
			<ext val="mub" />
		</format>
		<format description="HFS" guid="{23170F69-40C1-278A-1000-000110E30000}">
			<ext val="hfs" />
			<ext val="hfsx" />
		</format>
		<format description="Dmg" guid="{23170F69-40C1-278A-1000-000110E40000}">
			<ext val="dmg" />
		</format>
		<format description="Compound" guid="{23170F69-40C1-278A-1000-000110E50000}">
			<ext val="doc" />
			<ext val="msi" />
			<ext val="msp" />
			<ext val="ppt" />
			<ext val="xls" />
		</format>
		<format description="wim" guid="{23170F69-40C1-278A-1000-000110E60000}">
			<ext val="esd" />
			<ext val="ppkg" />
			<ext val="swm" />
			<ext val="wim" />
		</format>
		<format description="Iso" guid="{23170F69-40C1-278A-1000-000110E70000}">
			<ext val="img" />
			<ext val="iso" />
		</format>
		<format description="Chm" guid="{23170F69-40C1-278A-1000-000110E90000}">
			<ext val="chi" />
			<ext val="chm" />
			<ext val="chq" />
			<ext val="chw" />
		</format>
		<format description="Split" guid="{23170F69-40C1-278A-1000-000110EA0000}">
			<ext val="001" />
		</format>
		<format description="Rpm" guid="{23170F69-40C1-278A-1000-000110EB0000}">
			<ext val="rpm" />
		</format>
		<format description="Ar" guid="{23170F69-40C1-278A-1000-000110EC0000}">
			<ext val="a" />
			<ext val="ar" />
			<ext val="deb" />
			<ext val="lib" />
			<ext val="udeb" />
		</format>
		<format description="Cpio" guid="{23170F69-40C1-278A-1000-000110ED0000}">
			<ext val="cpio" />
		</format>
		<format description="tar" guid="{23170F69-40C1-278A-1000-000110EE0000}">
			<ext val="ova" />
			<ext val="tar" />
		</format>
		<format description="gzip" guid="{23170F69-40C1-278A-1000-000110EF0000}">
			<ext val="apk" />
			<ext val="gz" />
			<ext val="gzip" />
			<ext val="tgz" />
			<ext val="tpz" />
		</format>
	</formats>
	<formatsDisabled />
</settings>
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

Horst.Epp wrote: 2024-07-16, 11:56 UTC
Peter18 wrote: 2024-07-16, 07:03 UTC But this way it will only use the TC's default unpacker, not the 7-Zip for unpacking the files. And especially in the case of 7z archives it's much-much slower, than 7-zip. That's the reason i want to use rather the 7-Zip for bot packing and unpacking integrated somehow in TC.
If you have the Total7zip plugin installed,
it will be used for packing / unpacking.
The plugin config can be set to use your installed 7zip
so it always has the actual version.
I also have replaced the 64 plugin sub-dir with a hardlink to C:\Program Files\7-Zip\

My plugin config Total7zip.xml looks like this:

Code: Select all

<?xml version="1.0"?>
<settings>
	<lister_plugin fontColor="0" bgColor="16777215" fontSize="10" fontFx="0" font="Courier New" />
	<gui lang="" />
	<debug logLevel="0" />
	<path path_7z_dll="7z.dll" path_7zG_exe="7zG.exe" />
	<path64bit path_7zG_exe="c:\Program Files\7-Zip\7zG.exe" path_7z_dll="" />
	<compression save="1" sfx="7z.sfx" updateSfx="0" askByContent="0" askByContentTimeout="1" alwaysWait7zip="1" extractToTempCount="20" deleteToRecycleBin="1" keySimpleMode="-1">
		<settings_7zip Level="0" Archiver="7z" ShowPassword="0" EncryptHeaders="1">
			<Options>
				<formatOptions FormatID="7z" Level="9" Dictionary="67108864" Order="64" BlockSize="34" NumThreads="8" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="BROTLI" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="bzip2" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="gzip" Level="5" Dictionary="4294967295" Order="32" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="wim" Level="4294967295" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="zip" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
				<formatOptions FormatID="ZSTD" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
			</Options>
		</settings_7zip>
	</compression>
	<passwords save="0" />
	<formats save="1">
		<format description="zip" guid="{23170F69-40C1-278A-1000-000110010000}">
			<ext val="7z" />
			<ext val="apk" />
			<ext val="appx" />
			<ext val="dat" />
			<ext val="docx" />
			<ext val="epub" />
			<ext val="ipa" />
			<ext val="jar" />
			<ext val="jmod" />
			<ext val="ods" />
			<ext val="odt" />
			<ext val="xlsx" />
			<ext val="xpi" />
			<ext val="z01" />
			<ext val="zip" />
			<ext val="zipx" />
		</format>
		<format description="bzip2" guid="{23170F69-40C1-278A-1000-000110020000}">
			<ext val="bz2" />
			<ext val="bzip2" />
			<ext val="tbz" />
			<ext val="tbz2" />
		</format>
		<format description="Rar" guid="{23170F69-40C1-278A-1000-000110030000}">
			<ext val="r00" />
			<ext val="rar" />
		</format>
		<format description="Arj" guid="{23170F69-40C1-278A-1000-000110040000}">
			<ext val="arj" />
		</format>
		<format description="Z" guid="{23170F69-40C1-278A-1000-000110050000}">
			<ext val="taz" />
			<ext val="z" />
		</format>
		<format description="Lzh" guid="{23170F69-40C1-278A-1000-000110060000}">
			<ext val="lha" />
			<ext val="lzh" />
		</format>
		<format description="7z" guid="{23170F69-40C1-278A-1000-000110070000}">
			<ext val="7z" />
			<ext val="exe" />
		</format>
		<format description="Cab" guid="{23170F69-40C1-278A-1000-000110080000}">
			<ext val="cab" />
		</format>
		<format description="Nsis" guid="{23170F69-40C1-278A-1000-000110090000}">
			<ext val="exe" />
			<ext val="nsis" />
		</format>
		<format description="lzma" guid="{23170F69-40C1-278A-1000-0001100A0000}">
			<ext val="lzma" />
		</format>
		<format description="lzma86" guid="{23170F69-40C1-278A-1000-0001100B0000}">
			<ext val="lzma86" />
		</format>
		<format description="xz" guid="{23170F69-40C1-278A-1000-0001100C0000}">
			<ext val="txz" />
			<ext val="xz" />
		</format>
		<format description="Ppmd" guid="{23170F69-40C1-278A-1000-0001100D0000}">
			<ext val="pmd" />
		</format>
		<format description="zstd" guid="{23170F69-40C1-278A-1000-0001100E0000}">
			<ext val="tzst" />
			<ext val="zst" />
		</format>
		<format description="LP" guid="{23170F69-40C1-278A-1000-000110C10000}">
			<ext val="img" />
			<ext val="lpimg" />
		</format>
		<format description="Sparse" guid="{23170F69-40C1-278A-1000-000110C20000}">
			<ext val="img" />
			<ext val="simg" />
		</format>
		<format description="APFS" guid="{23170F69-40C1-278A-1000-000110C30000}">
			<ext val="apfs" />
			<ext val="img" />
		</format>
		<format description="VHDX" guid="{23170F69-40C1-278A-1000-000110C40000}">
			<ext val="avhdx" />
			<ext val="vhdx" />
		</format>
		<format description="Base64" guid="{23170F69-40C1-278A-1000-000110C50000}">
			<ext val="b64" />
		</format>
		<format description="COFF" guid="{23170F69-40C1-278A-1000-000110C60000}">
			<ext val="obj" />
		</format>
		<format description="Ext" guid="{23170F69-40C1-278A-1000-000110C70000}">
			<ext val="ext" />
			<ext val="ext2" />
			<ext val="ext3" />
			<ext val="ext4" />
			<ext val="img" />
		</format>
		<format description="VMDK" guid="{23170F69-40C1-278A-1000-000110C80000}">
			<ext val="vmdk" />
		</format>
		<format description="VDI" guid="{23170F69-40C1-278A-1000-000110C90000}">
			<ext val="vdi" />
		</format>
		<format description="QCOW" guid="{23170F69-40C1-278A-1000-000110CA0000}">
			<ext val="qcow" />
			<ext val="qcow2" />
			<ext val="qcow2c" />
		</format>
		<format description="GPT" guid="{23170F69-40C1-278A-1000-000110CB0000}">
			<ext val="gpt" />
			<ext val="mbr" />
		</format>
		<format description="Rar5" guid="{23170F69-40C1-278A-1000-000110CC0000}">
			<ext val="r00" />
			<ext val="rar" />
		</format>
		<format description="IHex" guid="{23170F69-40C1-278A-1000-000110CD0000}">
			<ext val="ihex" />
		</format>
		<format description="Hxs" guid="{23170F69-40C1-278A-1000-000110CE0000}">
			<ext val="hxi" />
			<ext val="hxq" />
			<ext val="hxr" />
			<ext val="hxs" />
			<ext val="hxw" />
			<ext val="lit" />
		</format>
		<format description="TE" guid="{23170F69-40C1-278A-1000-000110CF0000}">
			<ext val="te" />
		</format>
		<format description="UEFIc" guid="{23170F69-40C1-278A-1000-000110D00000}">
			<ext val="scap" />
		</format>
		<format description="UEFIf" guid="{23170F69-40C1-278A-1000-000110D10000}">
			<ext val="uefif" />
		</format>
		<format description="SquashFS" guid="{23170F69-40C1-278A-1000-000110D20000}">
			<ext val="squashfs" />
		</format>
		<format description="CramFS" guid="{23170F69-40C1-278A-1000-000110D30000}">
			<ext val="cramfs" />
		</format>
		<format description="APM" guid="{23170F69-40C1-278A-1000-000110D40000}">
			<ext val="apm" />
		</format>
		<format description="MsLZ" guid="{23170F69-40C1-278A-1000-000110D50000}">
			<ext val="mslz" />
		</format>
		<format description="FLV" guid="{23170F69-40C1-278A-1000-000110D60000}">
			<ext val="flv" />
		</format>
		<format description="SWF" guid="{23170F69-40C1-278A-1000-000110D70000}">
			<ext val="swf" />
		</format>
		<format description="SWFc" guid="{23170F69-40C1-278A-1000-000110D80000}">
			<ext val="swf" />
		</format>
		<format description="NTFS" guid="{23170F69-40C1-278A-1000-000110D90000}">
			<ext val="img" />
			<ext val="ntfs" />
		</format>
		<format description="FAT" guid="{23170F69-40C1-278A-1000-000110DA0000}">
			<ext val="fat" />
			<ext val="img" />
		</format>
		<format description="MBR" guid="{23170F69-40C1-278A-1000-000110DB0000}">
			<ext val="mbr" />
		</format>
		<format description="VHD" guid="{23170F69-40C1-278A-1000-000110DC0000}">
			<ext val="vhd" />
		</format>
		<format description="PE" guid="{23170F69-40C1-278A-1000-000110DD0000}">
			<ext val="dll" />
			<ext val="exe" />
			<ext val="sys" />
			<ext val="tmp" />
		</format>
		<format description="ELF" guid="{23170F69-40C1-278A-1000-000110DE0000}">
			<ext val="elf" />
		</format>
		<format description="MachO" guid="{23170F69-40C1-278A-1000-000110DF0000}">
			<ext val="macho" />
		</format>
		<format description="Udf" guid="{23170F69-40C1-278A-1000-000110E00000}">
			<ext val="img" />
			<ext val="iso" />
			<ext val="udf" />
		</format>
		<format description="Xar" guid="{23170F69-40C1-278A-1000-000110E10000}">
			<ext val="pkg" />
			<ext val="xar" />
			<ext val="xip" />
		</format>
		<format description="Mub" guid="{23170F69-40C1-278A-1000-000110E20000}">
			<ext val="mub" />
		</format>
		<format description="HFS" guid="{23170F69-40C1-278A-1000-000110E30000}">
			<ext val="hfs" />
			<ext val="hfsx" />
		</format>
		<format description="Dmg" guid="{23170F69-40C1-278A-1000-000110E40000}">
			<ext val="dmg" />
		</format>
		<format description="Compound" guid="{23170F69-40C1-278A-1000-000110E50000}">
			<ext val="doc" />
			<ext val="msi" />
			<ext val="msp" />
			<ext val="ppt" />
			<ext val="xls" />
		</format>
		<format description="wim" guid="{23170F69-40C1-278A-1000-000110E60000}">
			<ext val="esd" />
			<ext val="ppkg" />
			<ext val="swm" />
			<ext val="wim" />
		</format>
		<format description="Iso" guid="{23170F69-40C1-278A-1000-000110E70000}">
			<ext val="img" />
			<ext val="iso" />
		</format>
		<format description="Chm" guid="{23170F69-40C1-278A-1000-000110E90000}">
			<ext val="chi" />
			<ext val="chm" />
			<ext val="chq" />
			<ext val="chw" />
		</format>
		<format description="Split" guid="{23170F69-40C1-278A-1000-000110EA0000}">
			<ext val="001" />
		</format>
		<format description="Rpm" guid="{23170F69-40C1-278A-1000-000110EB0000}">
			<ext val="rpm" />
		</format>
		<format description="Ar" guid="{23170F69-40C1-278A-1000-000110EC0000}">
			<ext val="a" />
			<ext val="ar" />
			<ext val="deb" />
			<ext val="lib" />
			<ext val="udeb" />
		</format>
		<format description="Cpio" guid="{23170F69-40C1-278A-1000-000110ED0000}">
			<ext val="cpio" />
		</format>
		<format description="tar" guid="{23170F69-40C1-278A-1000-000110EE0000}">
			<ext val="ova" />
			<ext val="tar" />
		</format>
		<format description="gzip" guid="{23170F69-40C1-278A-1000-000110EF0000}">
			<ext val="apk" />
			<ext val="gz" />
			<ext val="gzip" />
			<ext val="tgz" />
			<ext val="tpz" />
		</format>
	</formats>
	<formatsDisabled />
</settings>
I have installed the plugin, but it only works for 7z archives and not for zip archives (gives an error, and opens wcx packer configuration screen in TC). So how to make that work for zip's too?

And I only have one xml file in the installed plugin directory: total7zip.template.xml and not total7zip.xml... ???

I also don't know what you mean by: "I also have replaced the 64 plugin sub-dir with a hardlink to C:\Program Files\7-Zip\"
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *petermad »

2Peter18
For the plugin to work for other format you have to add it to the [PackerPlugins] section of your wincmd.ini file

Code: Select all

7zip_zip=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
Then you can use 7-zip to pack zip files by choosing 7zip_zip instead of 7z as file format.


I also don't know what you mean by: "I also have replaced the 64 plugin sub-dir with a hardlink to C:\Program Files\7-Zip\"
In the Total7zip.xml file in this line

Code: Select all

<path64bit path_7zG_exe="c:\Program Files\7-Zip\7zG.exe"
replace the path to 7zG.exe with the path you have on your computer - it might be the same.


Here are other file formats you could add to the [PackerPlugins] section:

Code: Select all

wim=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
xz=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
flv=964,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
iso=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_tar=733,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_gzip=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_bzip2=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_jar=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_arj=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_cab=708,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_xpi=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6954
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Horst.Epp »

Peter18 wrote: 2024-07-16, 13:29 UTC And I only have one xml file in the installed plugin directory: total7zip.template.xml and not total7zip.xml... ???
The reason for having a template is
to copy it to total7zip.xml and customize it.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

petermad wrote: 2024-07-16, 14:55 UTC 2Peter18
For the plugin to work for other format you have to add it to the [PackerPlugins] section of your wincmd.ini file

Code: Select all

7zip_zip=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
Then you can use 7-zip to pack zip files by choosing 7zip_zip instead of 7z as file format.


I also don't know what you mean by: "I also have replaced the 64 plugin sub-dir with a hardlink to C:\Program Files\7-Zip\"
In the Total7zip.xml file in this line

Code: Select all

<path64bit path_7zG_exe="c:\Program Files\7-Zip\7zG.exe"
replace the path to 7zG.exe with the path you have on your computer - it might be the same.


Here are other file formats you could add to the [PackerPlugins] section:

Code: Select all

wim=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
xz=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
flv=964,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
iso=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_tar=733,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_gzip=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_bzip2=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_jar=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_arj=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_cab=708,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_xpi=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
So now I got the Total7zip.xml file saved and it's content is exactly the same as you have posted.

I have also entered the line in the wincmd.ini file, so now the "Packer" section looks like this:

Code: Select all

[PackerPlugins]
7zip_zip=735,C:\NEW Desktop PC - MyFiles\Utils and Drivers\Total Commander - Installed\plugins\wcx\Total7zip\Total7zip.wcx
TotalObserver=735,C:\NEW Desktop PC - MyFiles\Utils and Drivers\Total Commander - Installed\plugins\wcx\Total7zip\Total7zip.wcx
[Packer]
RememberLastPassword=1
InternalZip=0
InternalUnzip=0
zipnt=0
zip7z=1
ZIP=""C:\Program Files\7-Zip\7z.exe""
UnZIP=pkunzip.exe
InternalZipRate=9
Zip83Name=0
ZipSetDateToNewest=0
nodelete=0
OpenPartial=0
LastUsedPacker64=10001
LastUsedPacker=1
DefPlugin=7z
But still: 7z archives unpacking works, but when I try to unpack some files from a zip archive I get the following:
Image: https://i.imgur.com/EBLQueh.jpeg

And these are my current settings for the Zip Packers in TC:
Image: https://i.imgur.com/S3YsFpO.jpeg

So something still doesn't right here. Could you figure out what could be still the problem?
Peter18
Junior Member
Junior Member
Posts: 21
Joined: 2020-09-17, 04:58 UTC

Re: How to make 7-Zip as default .zip and .7z packer/unpacker in TC?

Post by *Peter18 »

I have made some refinement in the "Packer" section of wincmd.ini file, so it now looks like this:

Code: Select all

[PackerPlugins]
7zip_zip=735,C:\NEW Desktop PC - MyFiles\Utils and Drivers\Total Commander - Installed\plugins\wcx\Total7zip\Total7zip.wcx
TotalObserver=C:\NEW Desktop PC - MyFiles\Utils and Drivers\Total Commander - Installed\plugins\wcx\TotalObserver\TotalObserver.wcx
zip=735,C:\NEW Desktop PC - MyFiles\Utils and Drivers\Total Commander - Installed\plugins\wcx\Total7zip\Total7zip.wcx
[Packer]
RememberLastPassword=1
InternalZip=0
InternalUnzip=0
zipnt=0
zip7z=1
ZIP=""C:\Program Files\7-Zip\7z.exe""
UnZIP=""C:\Program Files\7-Zip\7z.exe""
InternalZipRate=9
Zip83Name=0
ZipSetDateToNewest=0
nodelete=0
OpenPartial=0
LastUsedPacker64=10001
LastUsedPacker=1
DefPlugin=7z
[SearchText]
0=40A4BG
1=A220341
2=V0000
3=V0004
4=30I.N1027
5=30I
6=V0004.06
7=N1027
8=V0004.06.30I.N1027
9=Errno
10=Errno 22
11=Errno 13
12=Timeout
13=Getaddrinfo
14=Gaierror
15=decryption
16=Connection
17=Socket
18=Invalid argument
19=Permission denied
[PackerPlugins64]
$checksum$=1188857660
exts=7zip_zip*TotalObserver*zip*
But no positive effect, it still doesn't work for zip files.

The first thing I don't understand, that why the [PackerPlugins64] section is this "empty"? Aren't we supposed to use the 64bit version of Z-Zip?

The second thig is this line in the Total7Zip.xml file:

Code: Select all

<path64bit path_7zG_exe="c:\Program Files\7-Zip\7zG.exe" path_7z_dll="" />
While in the wincmd.ini file there's the path only for the 7z.exe, not for the 7zG.exe:

Code: Select all

ZIP=""C:\Program Files\7-Zip\7z.exe""
UnZIP=""C:\Program Files\7-Zip\7z.exe""
:?:
Post Reply