Old 29th March 2009, 21:32   #1
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
nsUnzip plugin

nsUnzip plugin will test or extract files from a ZIP archive.
Code of the DLL uses sources of UnZip 5.52 of 28 February 2005, by Info-ZIP.

Features:
- Flexible extract options.
- Regular expressions (wildcards) may be used to match multiple members.
- Possibility to exclude specified files from processing.
- User function for unpacking progress.
- User function for listing archive.
- User function for crypted archive.


"nsUnzip" plugin v1.0

Download from Wiki
Instructor is offline   Reply With Quote
Old 29th March 2009, 23:18   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
What is the license? Is Info-ZIP GPL'ed or zlib?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th March 2009, 23:26   #3
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
BSD-like license:
http://info-zip.org/license.html
Instructor is offline   Reply With Quote
Old 2nd April 2009, 09:09   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
cool - thanks for developing

What would you say are the key benefits of nsUnzip over, say, ZipDLL and Nsisunz?
Animaether is offline   Reply With Quote
Old 27th November 2009, 17:26   #5
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
Added: "/e" option for extract only those files that already exist on disk.


"nsUnzip" plugin v1.1

Download from Wiki
Instructor is offline   Reply With Quote
Old 27th October 2010, 08:26   #6
bostko
Junior Member
 
Join Date: Oct 2010
Posts: 17
How to make NsUnzip work with injstfiles

I want to make NsUnzip able to show progress bar on the .
I tried to modify current MUI2 pages and add this feature to InstallFiles.nsh
However there is some dependencies that nsis has that I can't understand.

Is there any way to do it with instfiles page or I have to make a new dialog?
What is section and how it is invoked by instfiles?
bostko is offline   Reply With Quote
Old 27th October 2010, 10:46   #7
bostko
Junior Member
 
Join Date: Oct 2010
Posts: 17
And the most important question, how it shows progress.
bostko is offline   Reply With Quote
Old 27th October 2010, 20:57   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Make a modified version of Contrib\UIs\modern.exe using Resource Hacker (apply with !define MUI_UI) or add the progress bar at run time by calling user32::CreateWindow using the System plug-in (1st method is easier). You want to use the "User function for unpacking progress".

Stu
Afrow UK is offline   Reply With Quote
Old 28th October 2010, 13:47   #9
bostko
Junior Member
 
Join Date: Oct 2010
Posts: 17
Thanks for advice Afrow UK.
I tested your way adding new control into modern.exe . It works fine.
But for now I want to make it with minimal changes, so I added progress bar function in the first row of the section and it works.
bostko is offline   Reply With Quote
Old 4th November 2014, 13:56   #10
Skeeve
Junior Member
 
Join Date: Nov 2014
Posts: 1
Hi!

I'm just starting with NSIS and I'm a bit lost with the NsUnzip plugin. From here: http://nsis.sourceforge.net/How_can_I_install_a_plugin I see that I need to put the dll into the plugins folder and an nsh file into the include folder. But there is no nsh file.

What am I missing?
Skeeve is offline   Reply With Quote
Old 5th November 2014, 12:55   #11
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,914
Quote:
Originally Posted by Skeeve View Post
What am I missing?
Having a .nsh is not a plugin requirement, some of them will just have a .dll...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th August 2015, 11:43   #12
ted.reinhard
Junior Member
 
Join Date: Feb 2015
Posts: 2
Error #19

I'm using nsUnzip:Extract in my installer and it works great most of the time.
I do a Pop $0 to get the exit code and display it if it is not 0.

In one case I got a return value of 19. (It happened only for one test machine, only for one of the ZIPs my installer unzipped on this machine and I cannot reproduce it, but I saw the window with the 19 in it).

None of the error codes listed in the source (it is saied to be based on http://info-zip.org/UnZip.html) or elsewhere I looked talks about that code.

How is that possible ? What does the return code of 19 mean ?

Thanks,

Ted
ted.reinhard is offline   Reply With Quote
Old 5th September 2015, 06:57   #13
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
ted.reinhard
You should debug extract_or_test_files function of "Source\extract.c".
Instructor is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump