Creating Setup of large data with NSIS Script

2019-07-15 12:59发布

问题:

I am creating setup of large data approximetly 10 GB with NSIS Script and trying to create a single setup (exe). Its giving an Error -

Internal compiler error #12345: error mmapping file (xxxxxxxxxx, xxxxxxxx) is out of range.

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

Please tell me how to solve this issue ? Is there any other way to create a setup for this kinda situation ?

回答1:

NSIS installers are limited to 2Gb.

If you absolutely need it to be one file and you want to continue to use NSIS you have to append the data to the end of the generated setup. I'm not sure I would recommend that approach but it could work if the appended data is a zip file (or some other format with the header at the end) and you use one of the NSIS zip plugins to extract at run-time...