增加允许的文件路径长度 [英] Increase Allowable File Path Length
问题描述
是否可以增加 NSIS 的文件路径/字符串长度?我正在尝试使用具有相当长路径的函数 FILE
并且出现编译错误:
Is it possible to increase the file path/string length for NSIS? I am attempting to use the function FILE
with a path that is rather long and I get the compile error:
文件:打开文件失败..\..\..\..\12d\10.00\DPTI_Customisation\\DESIGN_12d10\DPTI_Design_User\DPTI_D_Toolbars\DPTI_D_Create_D_Boundaries_for_Tin.slx"
是否可以像增加 $NSIS_MAX_STRLEN 变量长度一样增加允许的长度?
Is it possible to increase the allowable length like how you can increase the $NSIS_MAX_STRLEN varaible length?
这个thread 说这个错误是由于文件路径太很长.
This thread says that the error is caused by the file path being too long.
编辑
代码如下:
FILE /r "..\..\..\..\12d\10.00\DPTI_Customisation\"
# The folder DPTI_Customisation contains many sub folders and files
推荐答案
您可以尝试使用 NSIS 的 unicode 版本.
You could try using the unicode version of NSIS.
或者,我想知道您是否可以多次调用 cd
以减少路径长度.
Alternatively, I wonder if you could use multiple calls to cd
in order to reduce your path length.
参考:http://nsis.sourceforge.net/Docs/Chapter5.html#5.1.5
这篇关于增加允许的文件路径长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!