Old 2nd March 2004, 13:16   #1
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
Question Help with ZipDLL

Can any 1 help me with how to make the ZipDLL work ?

I have followed the instructions in the readme which came with it. It compiles ok when I put a '!endif' right after the line:

!insertmacro ZIPDLL_EXTRACT "C:\unzipped\ZipDLL\test.zip" "c:\output\" "<ALL>"

but it only make a folder named 'output' but dosent extract anyfiles.

Sample code

;--------------------------------
;Include Modern UI

!include "MUI.nsh"
!include "ZipDLL.nsh"

;--------------------------------

;Installer Sections

Section

!insertmacro ZIPDLL_EXTRACT "C:\unzipped\ZipDLL\test.zip" "c:\output\" "<ALL>"

!endif

Does putting a !endif is the problem here ? without it it dosent compile. Gives a error like:
!if[macro][n]def: open at EOF - need !endif

- wreckles
Wreckles is offline   Reply With Quote
Old 2nd March 2004, 13:48   #2
evilO
Senior Member
 
Join Date: Jan 2004
Location: Strasbourg, Europe
Posts: 117
Hi again ..

Well, I checked your problem and it appears that there is a slight error in the header file : an 'endif' is commented and should not be. That is for the compilation problem. For the rest, well, it looks like your script is missing a couple of instructions..

Please download the fixed header file and try this, it should work... Otherwise let me know

PHP Code:
;--------------------------------
;Include 
Modern UI

!include "MUI.nsh"
!include "ZipDLL.nsh"
;--------------------------------

OutFile "c:\unzipped\testzipdll.exe" ; <- this was missing

Section

!insertmacro ZIPDLL_EXTRACT "C:\unzipped\ZipDLL\test.zip" "c:\output\" "<ALL>"

SectionEnd ; <- this was missing 
evilO/Olive
Attached Files
File Type: nsh zipdll.nsh (11.5 KB, 994 views)
evilO is offline   Reply With Quote
Old 2nd March 2004, 14:30   #3
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
Thanx again Those parts are missing allright! they are in my script but didnt include them in the post. Sorry about that.

I'll try out the new header file and let U know.

Thanx again man
Wreckles
Wreckles is offline   Reply With Quote
Old 2nd March 2004, 14:48   #4
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
Ahh... It works fine now. The problem is clear to me thanx to you.

I hope it allso works with spanned files...

Wreckles
Wreckles is offline   Reply With Quote
Old 2nd March 2004, 15:59   #5
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
DARN! it dosent support spaned zip files oh well, hope some 1 will improve that dll.

Wreckles
Wreckles is offline   Reply With Quote
Old 2nd March 2004, 16:16   #6
evilO
Senior Member
 
Join Date: Jan 2004
Location: Strasbourg, Europe
Posts: 117
Quote:
Those parts are missing allright! they are in my script but didnt include them in the post. Sorry about that
Well don't worry for that I thought you had the instructions in the script but it was just in case...

For the spanned files, I suggest you to read the following threads. There are quite long but the "problem" does not have an immediate solution apparently..

- http://forums.winamp.com/showthread....hreadid=128420

- http://forums.winamp.com/showthread....hreadid=131853

A tool to split files:
http://www.freebyte.com/download/hjsplit/hjspldos.zip

Hope you'll find what you need...

evilO/Olive
evilO is offline   Reply With Quote
Old 3rd March 2004, 13:00   #7
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
Thanx again I'll check out those forum links and the zip file.

Hope it'll solve my prob. Wonder why NSIS dosent support making a spanned exe. more easily Most of other setup builders have it.(like Inno Setup) I hope they put this option in the next release. cuz a lot of ppl will benefit from it
well umm... at least me!

- wreckles
Wreckles is offline   Reply With Quote
Old 3rd March 2004, 13:55   #8
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
That Hjsplit.exe is really nice. but it takes a bit more time and space to re join the thing and extract the joined file from the users HDD. It'll work fine with small files but what about large 1's ?


I heard that Spanning facility will be available in NSIS 2.1. That'll be really nice

-Wreckles
Wreckles is offline   Reply With Quote
Old 3rd March 2004, 14:21   #9
evilO
Senior Member
 
Join Date: Jan 2004
Location: Strasbourg, Europe
Posts: 117
Err, sorry Wreckles I didn't think about huge files...

Well I hope for you that the release 2.1 will include this feature, but as the version 2.0 was released very recently you'll probably have to find another way to do it...

Good luck

evilO/Olive
evilO is offline   Reply With Quote
Old 3rd March 2004, 15:58   #10
Wreckles
Junior Member
 
Wreckles's Avatar
 
Join Date: Mar 2004
Posts: 11
Yeah... Looks like I have to wait and see.. But still NSIS is a great software
Thanx for all your help man. Really learned a lot thanx to U.

- wreckles
Wreckles 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