Old 26th September 2006, 17:33   #1
Pete_AUT
Junior Member
 
Join Date: Sep 2006
Posts: 6
Split Installer

Hello
I just wanted to compile my installer, but i got the compiler error #12345.
I found out, that it's because the files are bigger than 2GB.

How can i split the files into 2 files?
For example:
setup.exe (<2GB)
data.zip (the rest)

So the installer uses the zip to unpack the rest of the files...

greets,
pete
Pete_AUT is offline   Reply With Quote
Old 26th September 2006, 18:35   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
This is a good solution:
http://forums.winamp.com/showthread....hlight=7za.exe

-Stu
Afrow UK is offline   Reply With Quote
Old 27th September 2006, 15:25   #3
Mr Inches
Member
 
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
The CABSetup plugin is built to handle these types of installers.

You can find it here: http://nsis.sourceforge.net/CABSetup_plug-in

Duncan
Mr Inches is offline   Reply With Quote
Old 27th September 2006, 16:33   #4
Pete_AUT
Junior Member
 
Join Date: Sep 2006
Posts: 6
Quote:
Originally posted by Mr Inches
The CABSetup plugin is built to handle these types of installers.

You can find it here: http://nsis.sourceforge.net/CABSetup_plug-in

Duncan
Thanks for your answers
I'm currently not able to open the nsis-website, but the cabsetup seems to be, what i'm looking for ...

Thanks again

greets
Pete_AUT is offline   Reply With Quote
Old 28th September 2006, 02:29   #5
dandaman32
Senior Member
 
dandaman32's Avatar
 
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
You should probably be aware that the compression in .CAB files sucks. The algorithm hasn't been changed since Windows 95 (3.x?). You're probably better off using 7-zip compression, plus if you use 7-zip compression and you need a good way to handle licensing for your program, you can encrypt the archives using the users' registration key.

-dandaman32

ExperienceUI for NSIS | Latest project: Enano CMS
Do not PM me on the Winamp forums, I hardly ever check my messages here; you are more likely to get my attention through the ExperienceUI forum.
dandaman32 is offline   Reply With Quote
Old 28th September 2006, 03:29   #6
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
splitting into 2gb+rest files is really usefull if you want to download it from web <sncr>

and for dvd it makes no sense.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 28th September 2006, 09:35   #7
Pete_AUT
Junior Member
 
Join Date: Sep 2006
Posts: 6
the compression isnt really important!
it's only for some friends and i just saw, that the files are exactly 4.7GB, so i can burn it on dvd

okay, i'll try 7zip too thanks for your answers
Pete_AUT is offline   Reply With Quote
Old 29th September 2006, 09:56   #8
Mr Inches
Member
 
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
Compared to 7-Zip compression, the LZMA compression used in CAB files can be poor, for some files.

Files that are going to compress well or poorly are likely to do so regardless of the algorithm used (try comparing compressing already compressed files using two different archive programs, the difference is likely to be < 5%.) Across a couple of CDs or DVDs, this isn't likely to matter.

If conserving space is of major concern, use 7-Zip to compress the files and CABSetup to contain the resulting archives to manage the disk handling; I have seen modern installers do this type of action where they use InstallShield to carry the files and use some other software to unpack them once they are on the user's hard drive.

I could modify CABSetup to enable the caller to turn compression off so files are not double-compressed to support this behaviour. (In fact, it sounds like a handy option, so I think I will do it anyway.)

Microsoft MSI installers use the same library functions that CABSetup does to compress their file databases; that was one of the reasons for using them for the plug-in - to give NSIS a capability it didn't have, using something that was likely to have support (at least on the Windows platforms.)

Anyway, the next release of CABSetup is soon, I have spent the last couple of days ironing out a few bugs - the change has been substantial, and should be a big improvement on version 1.1.

Duncan
Mr Inches is offline   Reply With Quote
Old 30th September 2006, 17:56   #9
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
CABsetup
http://forums.winamp.com/showthread.php?threadid=239456
http://nsis.sourceforge.net/CABSetup_plug-in

hth

Greets, Brummelchen
Brummelchen 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