Old 3rd March 2017, 06:20   #1
adaikalak
Junior Member
 
Join Date: Mar 2017
Posts: 1
How to Create Install larger then 2 gb ?

Hi All,

I need to Create Installer using NSIS larger than 2 gb.

This is the error message I get while I compile

Note: you may have one or two (large) stale temporary file(s) left in your temporary directory (Generally this only happens on Windows 9x).

Awaiting for reply..
adaikalak is offline   Reply With Quote
Old 3rd March 2017, 06:31   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,559
https://sourceforge.net/projects/nsisbi/

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 4th March 2017, 05:41   #3
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 503
Send a message via ICQ to T.Slappy
I did not know about this project, thanks Anders.

Do you think it would be possible to merge it into official NSIS?

That would be amazing if we can remove this limitation with simple command!


What do you think @Anders? And @jason ?

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 5th March 2017, 05:55   #4
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 847
I don't think it's mature enough yet, I really want to add LZ4 to it but I lack the experience in modifying a codec to work in nsis.

The other item I've been thinking about is some sort of file splitting, the obvious size would be 2GB blocks. I would have to add another command to do this, perhaps SetExOutFileBlockSize size, with the basics (2GB, 1GB, 512MB, 256MB). Adding another field to the first header for flags means I could increase the theoretical max size from 8EB to 16EB. I don't know if I'll actually end up doing it though.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 5th March 2017, 06:34   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,559
I'll be honest, I don't really see the usefulness of split archives. If it is downloaded from the internet you want a single file. If it is on a disc you put the highly compressible files in the installer and copy the rest or use one of the decompress plugins. Inno Setup supports it IIRC so you can use that if you really need it.

Also, trying to go past 8EB is pointless. How are you even going to test it? (NSIS itself will display the wrong number on the directory page if you have more than 4194303 TiB of free space. I'll be dead before anyone hits that bug so I don't really care)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th March 2017, 03:31   #6
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 847
Yeah, the filesize is purely theoretical, isn't there a 44 bit or 48 bit limit on x86 processors at the moment anyway? I'm just saying the ability is there but we probably won't reach it in our lifetime.

Really the only reason I brought up split archives is for older file system support, FAT32 being the prime example. I know ext4 on linux has a maximum single file size of 16TiB, even that is a huge amount of space that most people don't have (I don't have that yet but I have a NAS server waiting for some harddrives in the future).

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 6th March 2017, 14:26   #7
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 847
Also, the reason why I forked NSIS in the first place is because it was unlikely that the nsis developers were going to add this feature any time soon. So for now these will remain separate projects.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 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