|
|
|
|
#1 |
|
Junior Member
Join Date: Oct 2004
Location: UK
Posts: 33
|
Thanks MSG, in the meantime.... I have replicated the problem using a tiny script!
====MAIN SCRIPT==== !include LogicLib.nsh OutFile "NESTTEST.EXE" InstallDir $DESKTOP\Example1 RequestExecutionLevel user ShowInstDetails show Page components Page instfiles Section "nested includes test" NESTTEST !define FILENUM "0" !include "file1.nsh" SectionEnd ====FILE1.NSH==== !ifdef _FILENUM !undef _FILENUM !endif !define /math _FILENUM ${FILENUM} + 1 !echo `I am include number ${_FILENUM}` !undef FILENUM !define FILENUM ${_FILENUM} ${For} $R0 1 5 ${Next} !include "file1.nsh" Last 4 lines of compiler output (before the crash) are: I am include number 8 (file1.nsh:5) !undef: "FILENUM" !define: "FILENUM"="8" !insertmacro: _For So there appears to be a problem with the number of nested includes combined with LogicLib! Now, !include doesn't appear to have a problem going beyond 8 nested levels normally, so I suspect something in the LogicLib magic is causing trouble... I've never been very sure about what is right. I'm not even sure that there is such a thing as right. Or wrong. Just places to stand. Last edited by Marshall7a; 16th September 2010 at 14:04. Reason: more info |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|