Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 8th October 2005, 01:38   #1
Unregistered561
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 8th October 2005, 03:09   #2
Jamyn
Junior Member
 
Join Date: Aug 2002
Location: Texas
Posts: 36
(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.
Jamyn is offline   Reply With Quote
Old 8th October 2005, 09:31   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 8th October 2005, 17:51   #4
Unregistered561
Guest
 
Posts: n/a
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!
  Reply With Quote
Old 9th October 2005, 09:15   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK 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