[WCX] 7-zip plugin ver. 0.4.x

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ono
Junior Member
Junior Member
Posts: 52
Joined: 2003-12-22, 11:37 UTC
Location: Zurich Area, Switzerland

Post by *ono »

Okay... found the solution for the problem of non closed archives. I was using __declspec(dllexport) however compiler then doesn't properly define __stdcall function. So one time function was called OK one time not. Now I'm using __stdcall and .def file and it's fine.

http://www.totalcmd.net/plugring/7zip_plugin.html

Version 0.2 (2004.12.30)
:arrow: full read-only support for 7zip archives
:arrow: added BCJ2 & BCJ_X86 packing methods
:arrow: compatible archives 7zip UI version <= 4.13

Please let me know if you find any unstability :)

P.S. When accessing huge archives for just one or few file to extract / view you might need wait till all archive stream is passed, can take a while. This is due the 7zip construction.
Last edited by ono on 2005-01-05, 18:26 UTC, edited 2 times in total.
TC Personal license #99581
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, nice to hear that! I'm sorry that I didn't have the time yet to check your code. Probably I wouldn't have found the declspec problem, though, I'm not such a big C expert...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ono
What is the license of your plugin? Is it just freeware or "GNU LGPL" (whatever this is)?
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

2ono:
1st: thx for building this plugin
2nd: i downloaded
http://fileforum.betanews.com/sendfile/1086739971/1/rad_w2kxp_omega_2597a_7z.exe
and renamed it to rad_w2kxp_omega_2597a_7z.exe.7z
when I'm now tryin' 2 unpack the file inside the tc crashes :(
do 7z-exes have an other format than "normal" 7z files?
Hoecker sie sind raus!
ono
Junior Member
Junior Member
Posts: 52
Joined: 2003-12-22, 11:37 UTC
Location: Zurich Area, Switzerland

Post by *ono »

Sir_SiLvA wrote:(...) when I'm now tryin' 2 unpack the file inside the tc crashes :(
do 7z-exes have an other format than "normal" 7z files?
Okay... fixed up that with the new build.

0.2.1 2005-01-03
:arrow: Fixed: Crash on 7z self unpacking exe files
:arrow: Fixed: 7z.wcx size is now 450kb instead of 690kb (useless symbols).

Note: Plugin license is freeware & redistribute it as it is. I may consider releasing it later on as GPL when it's fully featured and stable.

Regards,
TC Personal license #99581
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ono
Note: Plugin license is freeware & redistribute it as it is. I may consider releasing it later on as GPL when it's fully featured and stable.
I asked because 7-ZIP is under LGPL license but I don't know which license implications apply to programs using the 7-ZIP source code.
7z.wcx size is now 450kb instead of 690kb (useless symbols).
And even smaller when using UPX ;-)
ono
Junior Member
Junior Member
Posts: 52
Joined: 2003-12-22, 11:37 UTC
Location: Zurich Area, Switzerland

Post by *ono »

Lefteous wrote:2ono
Note: Plugin license is freeware & redistribute it as it is. I may consider releasing it later on as GPL when it's fully featured and stable.
I asked because 7-ZIP is under LGPL license but I don't know which license implications apply to programs using the 7-ZIP source code.
Since it's LGPL it is has good & bad points. Good point is that I can link with the 7zip sources but I don't have to serve my sourcecode... just the link to the 7zip sources. Bad point is I have to somehow provide users access to any bugfixes of 7zip libs available on the fly. Which with static linking is bit hard.
So... for the moment I do some dev over the plugin I will provide just builds with fresh 7zip code.
Lateron I will put it into GPL and publish it worldwide.

P.S. File is now updated on http://miranda.kom.pl/ono/7zip_wcx.zip Sorry for URL mess... I will update this link only later.
TC Personal license #99581
User avatar
nevidimka
Senior Member
Senior Member
Posts: 385
Joined: 2004-06-20, 21:38 UTC

Post by *nevidimka »

2ono
Thank you for your great plugin. It works fine under Windows XP.

With Windows 98 I've got some trouble:
Version 0.2 (2004.12.30)
0.2.1 2005-01-03
I can enter in an archive and see file list - but unpacking freezes TC.
The doorstep to the temple of wisdom is a knowledge of our own ignorance. Benjamin Franklin
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ono
Since it's LGPL it is has good & bad points. Good point is that I can link with the 7zip sources but I don't have to serve my sourcecode... just the link to the 7zip sources. Bad point is I have to somehow provide users access to any bugfixes of 7zip libs available on the fly. Which with static linking is bit hard.
So... for the moment I do some dev over the plugin I will provide just builds with fresh 7zip code.
Lateron I will put it into GPL and publish it worldwide.
Thanks for this information.

Did you know there is another 7zip plugin around: http://www.totalcmd.net/plugring/7z_plugin.html
It seems to use the command line version of 7zip.
User avatar
Ergo
Senior Member
Senior Member
Posts: 204
Joined: 2003-02-05, 12:20 UTC
Location: Belarus
Contact:

Post by *Ergo »

2Lefteous
Did you know there is another 7zip plugin around: http://www.totalcmd.net/plugring/7z_plugin.html
It seems to use the command line version of 7zip.
There was no a chance :) I put it on totalcmd.net just two hours ago. And BTW this plugin supports packing with 7z!

2ono
As usual let me know as soon as you want your plugin to be announced on www.totalcmd.net
Wincmd.ru WWW.TOTALCMD.NET
I see that future is near...
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Ergo
And BTW this plugin supports packing with 7z!
Currently it supports only unpacking but packing in 7z format is also planned.
I haven't tested it but but it seems that isn't true.
User avatar
Ergo
Senior Member
Senior Member
Posts: 204
Joined: 2003-02-05, 12:20 UTC
Location: Belarus
Contact:

Post by *Ergo »

I haven't tested it but but it seems that isn't true.
I have just tested and it works.
PS. 7za.exe must be from 4.x version of 7Zip.
Wincmd.ru WWW.TOTALCMD.NET
I see that future is near...
ono
Junior Member
Junior Member
Posts: 52
Joined: 2003-12-22, 11:37 UTC
Location: Zurich Area, Switzerland

Post by *ono »

nevidimka wrote:I can enter in an archive and see file list - but unpacking freezes TC.
Can you tell me at which point it freezes?... I've no Win9x around so I can test it by myself :(

Version 0.3 (2005.01.04)
:arrow: compression (only LZMA) support
:arrow: GPL sourcecode released

Note: This plugin is untested/incompatible with Windows 9x family. Sorry... but I'll try to make it compatible.
Ergo wrote:As usual let me know as soon as you want your plugin to be announced on www.totalcmd.net
Yes please. But post a note that it's still unstable and LZMA compression only and not Win9x compatible (untested).
Last edited by ono on 2005-01-05, 18:26 UTC, edited 1 time in total.
TC Personal license #99581
User avatar
Ergo
Senior Member
Senior Member
Posts: 204
Joined: 2003-02-05, 12:20 UTC
Location: Belarus
Contact:

Post by *Ergo »

2ono
Yes please. But post a note that it's still unstable and LZMA compression only and not Win9x compatible (untested).
Mail me webmaster@wincmd.ru - I will send you instructions to add your plugin on the site.
Wincmd.ru WWW.TOTALCMD.NET
I see that future is near...
A600
Junior Member
Junior Member
Posts: 4
Joined: 2005-01-04, 18:18 UTC

Post by *A600 »

@ono: Thanks a lot for your awesome plugin. And now a wish: Are you going to add support to test the file integrity of the 7z archives?

Many thanks.
Post Reply