Skip to content
⌘ NSIS Forum Archive

Large strings build and Sections.nsh does not work

4 posts

gieron#

Large strings build and Sections.nsh does not work

Using the large strings build of makensis together with SelectSection from Sections.nsh gives very strange results.

The example code below works fine with the normal build, printing alfa, beta and Completed. The large strings build however prints alfa, alfa and Completed (which makes no sense at all).

My original installer (where I discovered the problem) crashed with an illegal operation instead. That program also works fine with the normal build.

The version I am using is 2.28 (for both builds of makensis).

!include "Sections.nsh"

OutFile "testprog.exe"
ShowInstDetails show

Page custom EnableBeta
Page instfiles

Section "alfa" ALFA
DetailPrint "alfa"
SectionEnd

Section /o "beta" BETA
DetailPrint "beta"
SectionEnd

Function EnableBeta
!insertmacro SelectSection ${BETA}
FunctionEnd
demiller9#
?? works OK when I run your program, std build and large string build both say "alfa, beta, completed".

Don
gieron#
Originally posted by Afrow UK
Did you extract the stubs as well?
I didn't think the stubs were important 🙄

It works fine after extracting them. Thanks Stu.