本文介绍了使用NSIS脚本创建大数据的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NSIS脚本创建大约10 GB的大数据安装程序,并尝试创建单个安装程序(exe).它给出了一个错误-

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 -

内部编译器错误#12345:错误映射文件(xxxxxxxxxx,xxxxxxxx)超出范围.

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

注意:您的临时目录中可能还剩下一个或两个(大)陈旧的临时文件(通常仅在Windows 9x上会发生这种情况).

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 ?

推荐答案

NSIS安装程序限于2Gb.

NSIS installers are limited to 2Gb.

如果绝对需要将其作为一个文件,并且要继续使用NSIS,则必须将数据附加到生成的设置的末尾.我不确定是否会推荐这种方法,但是如果附加数据是zip文件(或末尾带有某种其他格式的文件),并且您在运行时使用NSIS zip插件之一进行提取,则该方法可以工作. ..

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...

这篇关于使用NSIS脚本创建大数据的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:51