Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Strange Error: unknown variable/constant "{UNSEC0000}" detected (http://forums.winamp.com/showthread.php?t=227916)

Unregistered561 8th October 2005 01:38

Strange Error: unknown variable/constant "{UNSEC0000}" detected
 
When I compile my script, at the very end it says:

4 warnings:
unknown variable/constant "{UNSEC0000}" detected, ignoring (macro:SelectSection:3)
unknown variable/constant "{UNSEC0000}" detected, ignoring (macro:SelectSection:5)
unknown variable/constant "{UNSEC0000}" detected, ignoring (macro:UnselectSection:3)
unknown variable/constant "{UNSEC0000}" detected, ignoring (macro:UnselectSection:5)

What does this mess mean? It doesn't even provide line numbers for reference.

Neither Google nor a forum search for any of the message returned any help.

Jamyn 8th October 2005 03:09

(macro:UnselectSection:5)

Yes it does, it says in macro "UnSelectSection, line 5"
Same thing for line 3.

And I think you're wrapping them in { } marks when they don't need to be. Here's an example one I use (I found it somewhere on a forum post or something..)


!macro SECOFF sec
SectionSetText ${sec} ""
SectionSetFlags ${sec} 0
!macroend


and you call it with:

!insertmacro SECOFF SECTION01

... or whatever.

Afrow UK 8th October 2005 09:31

You do need to wrap it in { }:
!insertmacro SECOFF ${SECTION01}

Why? Because ${sec} will be "SECTION01" when you need it to be the value of ${SECTION01}

-Stu

Unregistered561 8th October 2005 17:51

For some reason, NSIS was not recognizing a section ID declaration for my uninstall section. So I just removed it and made one uninstall section for uninstalling everything.

Thanks!

Afrow UK 9th October 2005 09:15

I'm guessing you hadn't put that Section above where you were using it in your script and so the constant hadn't been defined yet.

-Stu


All times are GMT. The time now is 17:46.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.