question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FromStoneagecommented, Feb 20, 2017

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 into NSIS_MAX_STRLEN math length at 1024 issue.

1reaction
develarcommented, Feb 18, 2017

Fixed in 13.10.1.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found