NSIS Special Builds set NSIS_MAX_STRLEN flag
See original GitHub issue- Version: 13.6.0
- Target: Windows
I’m reading over how to properly update PATH with the NSIS installer. On the very beginning of the wiki page, it says
WARNING: Strings longer than ${NSIS_MAX_STRLEN} will get truncated/corrupted. Do NOT use this function to update %PATH%. (See below for a link to an alternative implementation.)
The default NSIS_MAX_STRLEN
size are 1024 byte?
I know electron-builder are using NSIS 3.0.1 but how would I tell if we are running the Speical Build? and how can we update the NSIS variable NSIS_MAX_STRLEN=8192
from custom nsh scripts?
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Chapter 4: Scripting Reference
A NSIS Script File (.nsi) is just a text file with script code. ... NSIS with a bigger value of the NSIS_MAX_STRLEN build...
Read more >#942396 - nsis: increase NSIS_MAX_STRLEN to 8192
Nevertheless I think it might be worthwhile providing the stubs of the special builds of "advanced logging" and "large strings" via an optional ......
Read more >NSIS - ITLnet
Installer attributes; Compiler flags; Sections; Functions; Labels; Instructions ... Without this parameter, installer defaults are set from nsisconf.nsi.
Read more >NSIS 2.46 Users Manual - SourceForge
The script language supports variables, functions, string manipulation, just like a normal programming language - but designed for the creation of installers.
Read more >Changing NSIS_MAX_STRLEN in the latest source
I knew the special builds of nsis. But this time I am trying to chinesize NSIS by editing the source code, preparing for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank You @develar again !! Much much appreciated!
I’ve just tested and confirmed that with 13.11.1, nsis special build is able to append variable to
PATH
without running intoNSIS_MAX_STRLEN
math length at 1024 issue.Fixed in 13.10.1.