Archive: "-" switch in Section command not working


"-" switch in Section command not working
Can somebody try to use the following code with the latest cvs?

Section -Test
SectionEnd


When i use the (-) switch before an section name the compiler gives the error message "Error: Section already open, call SectionEnd first"

I tested this in a new clean script were no sections were opened previously

DOCa Cola

What is better, post here or post in the "New in latest CVS version" the answer?


Try using

Section "-Test"
SectionEnd

-Stu


I'm not using the latest now (I got it at yesterday, 2:00 PM here), and is working. Now I'm downloading the latest... [EDIT]and I tried to run !InstallNSIS.bat but give this:

Section: "-post"
Error: Section already open, call SectionEnd first
Error in script "Examples/makensis.nsi" on line 631 -- aborting creation process

And I cannot install the latest version of NSIS![/EDIT]


Originally posted by Afrow UK
Try using

Section "-Test"
SectionEnd

-Stu
This does not work too
Thats strange, i haven't changed anything on that code since it last worked...

i just took the example1.nsi and changed the section name to...

Processing script file: "C:\Documents and Settings\DOCa Cola\Desktop\example1.nsi"
Name: "Example1"
OutFile: "example1.exe"
InstallDir: "$PROGRAMFILES\Example1"
DirText: "This will install the very simple example1 on your computer. Choose a directory" "" ""
Section: "-1231"
Error: Section already open, call SectionEnd first
Error in script "C:\Documents and Settings\DOCa Cola\Desktop\example1.nsi" on line 25 -- aborting creation process


After these posts, is right that the command Section got a bug on the lastest change in MakeNSIS.exe.


btw. i downloaded the latest cvs in a zip file now (usually i use the updater) and it won't compile itself too (!InstallNSIS.bat)

Error: Section already open, call SectionEnd first
Error in script "Examples/makensis.nsi" on line 631 -- aborting creation process


Fixed, thanks.