|
|
#1 |
|
Junior Member
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
|
Plugin to extract 7-Zip 4.10 files
Is there a plug-in that can decompress archives created by 7-zip v4.12? I would like to use 7Zip to decrease the size of my downloadable components.
Cheers! |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You'll have to use 7-Zip's command-line 7z.exe program to decompress 7z files.
You should compress it into your installer, and place it in a folder (e.g. $PLUGINSDIR) on run-time then execute it with nsExec::Exec. -Stu |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You can use nsExec::ExecToLog to stream the 7z output directly to the installation progress window.
-Stu |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
7zip went final 7.20.
I would appreciate a plugin using 7zip for archiving like "nsexec::7zip '"c:\temp\*.txt" /switch' or another built-in solution... WinRAR also uses a newer 7zxa.dll instead an bigger exe 7za.exe Greets, Brummelchen |
|
|
|
|
|
#6 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,917
|
Update:
I'm a making a plugin for decompressing 7z files (~60KB DLL), but I need to know if theres one already...
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE. |
|
|
|
|
|
#7 |
|
Banned
Join Date: Jan 2001
Location: Norway
Posts: 927
|
Joel! Just go ahead and make it.
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jan 2003
Posts: 27
|
If one doesn't really need the 7z format and just wants to use the LZMA compression method, then there is also the ExtractDLLEx or untgz plugins.
|
|
|
|
|
|
#9 |
|
Senior Member
|
Some time ago I wrote a simple plugin for uncompressing 7z files with progress reporting. It was based on the console sfx with changed console interface to some kind of nsis wrapper. It was big enough (144 kb), but due to size (32 mb to 27 mb from nsis lzma to 7z file) and time (i've used archive as merge module, which never changes) economy, that really doesn't matter for me.
However I've lost one of my hdd's some weeks ago, so at present time I have no source code of that plugin, just compiled dll. PHP Code:
|
|
|
|
|
|
#10 |
|
Banned
Join Date: Jan 2001
Location: Norway
Posts: 927
|
Since the source code for the 7-zip project is open-source there shouldn't be hard to implement this. I might have a crack at it sometime as well. But I don't know about the time. I wrote my own version of unzip plug-in for NSIS one time (based on source code for NSIS' Zip2EXE) and if 7-zip has some easy to use interface it will be doable.
|
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Jan 2006
Location: A Game company in Edmonton
Posts: 11
|
Any Update on this plugin?
|
|
|
|
|
|
#12 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
why should it ?
Greets, Brummelchen |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Jan 2006
Location: A Game company in Edmonton
Posts: 11
|
Ah, Sorry... I mean if there was an updated copy of this plugin with the updated 7-zip files. This plugin's 7zip files aren't up to date, and the source code's not provided (ala 7zip licence). So I just wanted to ask if there was any update on the status of the plugin.
Owen. |
|
|
|
|
|
#14 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
write to the author pls
Greets, Brummelchen |
|
|
|
|
|
#15 |
|
Senior Member
|
Nsis7z plugin updated
Hello everyone
![]() I've spent some time to rewrite (due to lost source code) Nsis7z plugin using the latest 7z (4.64), this time the source code is available, so no one should have problems using/distributing it. This plugin allows our company to create merge-modules (as 7z archives) with prepacked files used in every release, saving some space (due to better compression ratio) and time (60mb 7z archive compiles to NSIS setup in several seconds, compare that with the time required to pack 250mb of original files). This post - complete distribution with source, next - stripped with plugin and example only. Best regards, Nik. |
|
|
|
|
|
#16 |
|
Senior Member
|
Nsis7z (based on 7z 4.64) binary distribution.
|
|
|
|
|
|
#17 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
Can it extract to a different directory and without paths? To do the equivalent of this command: 7za.exe e "downloadedfileusingnsisdl.7z" -o"$INSTDIR\some\path" -y eliminating the middle-man.
|
|
|
|
|
|
#18 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
first of all, thanks for this great plugin.. i was looking for this for ages!
i was wondering, if it would be easy to add support to create 7z files (or make it a seperate plugin). about decompression, i'm looking for a way to create a similiar dialog like the inbuild "unpacking data" at the launch of (huge) installers. i guess i could use a banner plugin, but can i display the unpacking status in there? i guess the 7z would have to support this in a way? |
|
|
|
|
|
#19 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
does this plugin handle passwords? does it report if an archive is protected by password?
|
|
|
|
|
|
#20 |
|
Member
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
|
Hi,
I've just found your plugin and its great. Question: Does it respect the SetOverWrite value? Last edited by dbach; 26th March 2009 at 12:21. |
|
|
|
|
|
#21 | |
|
Member
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
|
Quote:
) no, it doesnt.Bug: - Files not ending with .7z are not extracted (e.g. rename product.7z -> product.001, try extraction) Featurewish: - Nsis7z should respect SetOverwrite Thanks
|
|
|
|
|
|
|
#22 |
|
Junior Member
|
I actually wrote something along these lines myself awhile back, just a header that uses 7za.exe... It can extract and create archives of any type supported by 7-zip, as well as practically all of the command-line functionality of 7za.exe (except test archive). If anyone is interested I'd be happy to post the header.
|
|
|
|
|
|
#23 | |
|
Member
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
|
Quote:
|
|
|
|
|
|
|
#24 |
|
Junior Member
|
Ok I will. I just got into testing it more thoroughly than just what I needed when I first wrote it and there were a few weird bugs... I think I have them tracked down, so I'll post it soon.
|
|
|
|
|
|
#25 |
|
Junior Member
|
Here's my header. I am fairly certain that it works properly, but I wouldn't be surprised if some weirdness exists still. Sorry for the lack of documentation, the basic function calls are outlined in the comment at the top of the file. You'll need 7za.exe in the NSIS plugins directory to use it.
|
|
|
|
|
|
#26 |
|
Member
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
|
Thanks a lot for this.
|
|
|
|
|
|
#27 |
|
Junior Member
|
Something that I should have mentioned was that "other parameters" can be ANY 7-zip flags (should be at least...), so read the 7-zip documentation for things that you can put into other parameters. Basically whatever you put there just gets appended to the end of the command-line call, so if it works in a command-line call it should work there.
|
|
|
|
|
|
#28 |
|
Junior Member
Join Date: Sep 2009
Posts: 17
|
Is there any documentation about nsis7z.dll returned error ?
I mean - file to extract not found - error during extraction - etc... maybe someone here knows... |
|
|
|
|
|
#29 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
i'm really glad this plugin exists, because i prefer this over using an external program. however, this would even be better if there was a way to use (some of the) switches 7zr.exe offers. personally i'm looking for a way to extract a specific file from an archive only, right now i have to use 7zr/7za to do the task.
|
|
|
|
|
|
#30 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
hi guys, this plugin can extract rar files too???
|
|
|
|
|
|
#31 | ||
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,917
|
Quote:
![]() Since the plugin reads files from 7zip, let's got its site, quote from there: Quote:
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE. |
||
|
|
|
|
|
#32 |
|
Junior Member
Join Date: May 2010
Posts: 1
|
Plugin breaks non ANSI file pathname encoding (for example it switches from cyrillic 1251 to 866, this causes shortcut creation into inproper places).
Here's a fix. |
|
|
|
|
|
#33 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
Hi...
I need a help please with this plugin... I read the wiki about the usage of this plugin, like this: Unpack you merge module as 7z archive to somewere on users harddrive, set target dir for archive contents with SetOutPath, and call plugin. My question is: when this say merge module it is referred to standalone file 7za.exe??? |
|
|
|
|
|
#34 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
I think that line is trying to say "unpack your 7z archive using the File command, then use SetOutPath to set the extraction output directory and call the plugin."
|
|
|
|
|
|
#35 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
OK ,so i saw that example but before from command script File you can see SetCompress off. But i think about the file command, it compress that 7z into setup.exe (so SetCompress off is not working?)
This plugin first copy 7z into harddrive and then extracts the contents??? I was searching for a long time a plugin that allow me to extract contents froms some 7z files with an animated bar but only i need to extract it from fixed media like DVD. So I need to make a little setup.exe... thanks. P.D. Sorry admin about duplicate post, please delete one... |
|
|
|
|
|
#36 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
OK ,so i saw that example but before from command script File you can see SetCompress off. But i think about the file command, it compress that 7z into setup.exe (so SetCompress off is not working?)
This plugin first copy 7z into harddrive and then extracts the contents??? I was searching for a long time a plugin that allow me to extract contents froms some 7z files with an animated bar but only i need to extract it from fixed media like DVD. So I need to make a little setup.exe... thanks.
|
|
|
|
|
|
#37 | ||
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
Quote:
And no. You first have to copy the 7z to the harddrive using the File command (it's actually called extracting, not copying, because you need to extract it from the installer exe.) Or you can use a 7z file from a CD, or a downloaded one, of course. |
||
|
|
|
|
|
#38 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
thanks MSG and sorry for "???"
![]() I have some files in 7z format file, so my project takes about 8GB...so i need a plugin that allow me to extract these files from fixed media, like DVD... If i use de 7z standalone file for use command line, this work for me but progress bar not moving and not showing the information progress like "10% - file.xx". |
|
|
|
|
|
#39 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Indeed, the standalone 7z is not designed for NSIS, so it will not output information to the NSIS log by itself. You can try using nsExec::ExecToLog, but if I recall correctly it doesn't work here because 7z doesn't just print information, it updates it as well (like the percentage counter). And that doesn't work with ExecToLog, as far as I know.
But have you tried the 7z plugin? It should be able to unpack a 7z archive just fine. |
|
|
|
|
|
#40 |
|
Junior Member
Join Date: Dec 2009
Posts: 29
|
Hi ...
Yes MSG, worked fine if i use 7za.exe... |
|
|
|
![]() |
|
|||||||
| Tags |
| 7-zip, lzma, plug-in |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|