Old 24th June 2007, 22:00   #1
gieron
Junior Member
 
Join Date: Jun 2007
Location: Sweden
Posts: 2
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).

Quote:
!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
gieron is offline   Reply With Quote
Old 24th June 2007, 22:11   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Did you extract the stubs as well?

Stu
Afrow UK is offline   Reply With Quote
Old 24th June 2007, 22:30   #3
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
?? works OK when I run your program, std build and large string build both say "alfa, beta, completed".

Don
demiller9 is offline   Reply With Quote
Old 25th June 2007, 11:58   #4
gieron
Junior Member
 
Join Date: Jun 2007
Location: Sweden
Posts: 2
Quote:
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.
gieron 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