Old 28th June 2010, 02:33   #1
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
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:
Quote:
cfg.Add(
(
'NSIS_MAX_STRLEN',
'defines the maximum string length for internal variables and stack entries...',
4096
)
)
Is it right?
jiake is offline   Reply With Quote
Old 28th June 2010, 13:57   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,411
you can set options when you call scons (ex: scons unicode=true prefix=c:\foo install)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 29th June 2010, 09:38   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You can also download the prebuilt version with longer strings from the Special Builds page.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 30th June 2010, 02:22   #4
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
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.
jiake is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump