targzbz2 plugin don't work with tbz
Moderators: Hacker, petermad, Stefan2, white
targzbz2 plugin don't work with tbz
I have installed targzbz2 plugin, because I want to open tgz tar.gz / tbz tar.bz2 archives in one step. For tgz work ok, but for tbz it gave me an error. Is there something I can do?
Do you have the bzip2 plugin installed?
If not install it https://plugins.ghisler.com/plugins/bzipplug.zip
If not install it https://plugins.ghisler.com/plugins/bzipplug.zip
Yes, I have!iana wrote:Do you have the bzip2 plugin installed?
If not install it https://plugins.ghisler.com/plugins/bzipplug.zip
I've got several thoughts, first do you have total 7-zip installed as bz2 handler if it is try disabiling the bz2 support (delete the line bz2=731,%COMMANDER_PATH%\wcx\Total7zip\Total7zip.wcx) check your ini file, second bzip (bz) and bzip2 (bz2) are not the same, bzip was an early adoption of the Burows-Wheeler transformation (I hope I spelled their names right) and bzip2 isn't backward compatible with bzip can you open that archive without using targzbz2 plugin, and third the targzbz2 plugin should (I think so maybe it's the opposite) have higher priority ie be above the bazip2 plugin in your ini file, if everything fails try with an empty ini.
I try also with an empty ini and add only this lines:
but the result is the same: "Error in packed file: name.tbz!". I have TC 5.76a, winxp sp2. If I rename the file in *.bz2 I can extract the content. I have done the tbz file with TC, first a tar and then the bz2...
Code: Select all
[PackerPlugins]
tbz=4,%COMMANDER_PATH%\plugins\wcx\targzbz2\targzbz2.wcx
bz2=251,%COMMANDER_PATH%\plugins\wcx\wcx_bz2\bzip2dll.wcx
as bz2 is only a compressor not an archiver don't rename the bziped tar's but use the original suffixes *.tar.bz2If I rename the file in *.bz2 I can extract the content.
if you absolutely need tbz support (I've never come across a tbz filename) add the line
tbz=251,%COMMANDER_PATH%\plugins\wcx\wcx_bz2\bzip2dll.wcx
after
bz2=251,%COMMANDER_PATH%\plugins\wcx\wcx_bz2\bzip2dll.wcx
in wincmd.ini
Adding these two lines (or something similar depending where your wcx are installed) allows opening of tar.bz2 files in one step
Check to see if targzbz2.wcx hasn't overwritten the bzip2dll.wcx section, I don't think you can use the current version of targzbz2.wcx for tbz files
Code: Select all
bz2=4,%COMMANDER_PATH%\wcx\targzbz2\targzbz2.wcx
bz2=251,%COMMANDER_PATH%\wcx\bz2\bzip2dll.wcx
A quick glance at the targzbz2 source shows that it doesn't use the bzip2dll.wcx but internal Delphi bz2 unpacker plus the tar.bz2 extension is hard coded
you can try and edit the source or contact the author and ask him to add such a feature but using tbz as an extension will always result with an unknown format error.
Code: Select all
begin
if AnsiLowerCase(ExtractFileExt(ArchiveData.ArcName)) = '.bz2' then
if Pos('.tar.bz2', AnsiLowerCase(ArchiveData.ArcName)) > 0 then
begin
try
ReadFrom := ExtractTarFromBZ(ArchiveData.ArcName);
TempTar := ReadFrom;
except
Result := 0;
ArchiveData.OpenResult := E_UNKNOWN_FORMAT;
exit;
end;
end
imo there are 2 good reasons why not to use this plugin and only 1 weak reason for it.
First the reason pro for this plugin:
you don't have to hit enter when you're browsing a gz (bz2) compressed tar archive.
The two reasons not to use:
1: archives are read only ie you can't add or delete files from tar+gz (bz2) archives, while using tc's internal tar + gz + bzip2dll.wcx you can.
2. This plugin is ANSI only so if the archive contains files with unicode names they'll come out garbled TC 7.5+ has full unicode support (so is the bzip2 plugin) not only can your archive contain files with unicode names you can give the tar archive a unicode name and tc will process it while the targzbz2 plugin won't.
First the reason pro for this plugin:
you don't have to hit enter when you're browsing a gz (bz2) compressed tar archive.
The two reasons not to use:
1: archives are read only ie you can't add or delete files from tar+gz (bz2) archives, while using tc's internal tar + gz + bzip2dll.wcx you can.
2. This plugin is ANSI only so if the archive contains files with unicode names they'll come out garbled TC 7.5+ has full unicode support (so is the bzip2 plugin) not only can your archive contain files with unicode names you can give the tar archive a unicode name and tc will process it while the targzbz2 plugin won't.
One more reason for the plugin is navigating without having to wait until the underlying TAR file (which can be huge) is completely unpacked to the TEMP dir. Unfortunately, drawbacks of this plugin made me drop it when I tried it long ago.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64