Archive: large file size problem.


large file size problem.
I got a error message.

File: "Resource.svs" [compress]Error: add_db_data() - compress() failed(input/output error [-4])

condition was
SetCompressor lzma
The file size of Resource.svs was 1.9GB.

Is there a way to figure out?


dont know whether you could exceed that figure,
its common to have the 2gb limit at least with some binaries on some systems..try packaging the data separatly and call it from your nsis installer.


I always try to compare using bytes, because then it gives me an "exact" value to work from. Two files may be 2MB, but one has 2094152 bytes, and the other has 2111152 bytes.

If there are any other big files in the installer, then it will give a compress error.


sorry to bring back this old topic, but has anyone had any success with large files. I'm trying to use the LZMA compressor to compress a 10 GB file, but I know most of the file is empty space and it will compress down to 600MB.

Problem is I've started it compressing, and 8 hours later it's still going, with no indication of how long it will take. It seems it's trying to load the entire file into memory, and therefore the system is doing a lot of swapping, and I think it's going very slowly.

EDIT: I tried using the zli compressor, and whenever I give it a file igger then 705MB, it seems to just truncate it - I'll report ack the exact size that it truncates to when I get there.

PS. No guesses which key on my keyoard isn't working!


It's not yet possible. You'll have to use an external archive tool.


thanks for your reply.

have you any ideas when you might be planning to implement large files support - are we talking months, years, or never?


No idea.


Also would like this feature
It's been a while. Anyway we can support large files (> 2GB) within the installation package? Accepting donations to support this?


You can add a Feature Request in sourceforge project (if there is not already one for this).

With the release of a Unicode version of NSIS coming close (which, when enabled, will require target computer to have Windows 2000 or more recent), maybe we can start adding features to NSIS that could not be added previously because they required Windows 2000 and NSIS had to be compatible with every Windows.


Note that you can be using Windows 2000 or XP, and have a hard drive formatted as FAT32 which still limits file size to 2 GB
What should NSIS do in this case?!
As a general rule, if you plan your application to be used on various systems, you should not use files that are > 2GB


Indeed.. even a very large software vendor (Autodesk) splits their full downloadable installers into 2GB chunks of a self-extracting archive, which extracts to the actual installer(s) + support / data files.
For regular ol' media (DVD, Blu-Ray, USB) you typically wouldn't bother packing all the files into the installer either.. far too inefficient.