Skip to content
⌘ NSIS Forum Archive

Big problem with big files...

77 posts

kichik#
-3 means a memory error for bzip2 and an exception for lzma which usually means a memory error too. Are you sure you have enough free memory? Try setting a lower dictionary size, way lower than 48MB...
Thorondor#
In the last run I used smaller dictionary sizes <8MB.
And I've got 576MB Physical memory of which usually about 50% is free. Total system memory is about 1.3GB with usually about 80% free. So it's not, not enough memory free.
Thorondor#
I tried bzip2 and unfortunately I didn't get an error 😉. The problem for me is solved, but I think there is something wrong with the lzma compression for big files (solid/non-solid) (or else I'm doing something wrong 🙂)
kichik#
Last question before I perper a test which will give some more details. Have you used FileBufSize? If you have, what value? If you haven't, try setting it to 8.
Thorondor#
I didn't use FileBufSize, but with it lzma-compression works like a charm. Even with a dictionarysize of 8MB.
Thanks for your help kichik and Joost Verburg.👍 👍

(Looks like I WAS doing something wrong 😉 )
kichik#
If setting it to a lower value, you surely had a memory problem. If not shortage of memory, then maybe corrupted memory? Worth a check...
Thorondor#
Memory is fine, enough free and not corrupted. Checked it with multiple programs (the amount free and if it's corrupted). I think it purely was the size of the file-buffer. When I increased it I had no more problems.
kichik#
I have added meaningful error strings in the latest version. Can you please test your script on makensis.exe from:



and let me know what the error string is?
Thorondor#
I can't tell you the error string, because there is none. *
I think you solved the problem without realizing it 😉
I've tried multiple times, using different settings, even setting the dictionary size to 8, but no problems.
I'll keep on trying though. I'll post if I get an error.

*I mean I don't get any problems/errors anymore.
SonicSD#
Hi!

I'm also having the size prob. I need to compress ~3 GB. I tried to compile a installer, but makensis
stopped at about ~2.1 GB. Ok I also tried it with the Non-Solid, but also stopped sometime.

What I want to know, would it be possible to compress the installation files externally with 7-Zip, and then add NSIS-Data additionally?
This would be a good workaround for now, until NSIS supports larger sizes. 😁

Anyway NSIS is a great Installer, keep the good work up.
(using it since v1.98 😁)

SonicSD
Joost Verburg#
You can use external data files and the 7-zip command line tool to decompress the files on the users system.
SonicSD#
I did it that way, before NSIS got native lzma support.

But I thought that it might be possible to compress the data externally and make use of the native functions for decompression. (especially for the installing options 😁)

SonicSD
Joost Verburg#
NSIS does not support the 7-zip file format or any other archive structure.

If the compressed data size is below 2 GB, it should work with non-solid compression.