Archive: Changing NSIS_MAX_STRLEN in the latest source


Changing NSIS_MAX_STRLEN in the latest source
I downloaded the source code and compile it successfully. I want to set the NSIS_CONFIG_LOG on and change the value of NSIS_MAX_STRLEN, but when searching in google, I found there are all for the old version. In the new one, I didn't find the defination of NSIS_MAX_STRLEN. Later I found that the config header file would be created by SCons script, so I thought I only need to edit the top of the file .\SCons\config.py:

cfg.Add(
(
'NSIS_MAX_STRLEN',
'defines the maximum string length for internal variables and stack entries...',
4096
)
)
Is it right?

you can set options when you call scons (ex: scons unicode=true prefix=c:\foo install)


You can also download the prebuilt version with longer strings from the Special Builds page.


I knew the special builds of nsis. But this time I am trying to chinesize NSIS by editing the source code, preparing for localize NSIS 2.47.