Prev Previous Post   Next Post Next
Old 24th March 2009, 22:21   #1
LingoSag
Junior Member
 
Join Date: Mar 2009
Posts: 15
How set the value of the attributes

First,excuse my english, my native language is french

I try to set a SYMBOL with !define inside a macro.

The final target is: set the value of attribute at compile-time.

I take Caption for this exemple.

Later, if it work, I use ${If} ${Else}... for decide which value for each attributes...

I don't understand why is so difficult to set the value of this attributes

at compile-time for differents circumstances ???

-inside section...........No permit

-inside function..........No permit

-With variable............No permit

How set the value of this attributes in a flexible way ?

###############################

!macro test

!define TITLE_TEXT "SimpleTest"

!macroend


outFile "Output.exe"

Caption "${TITLE_TEXT}"


section

!insertmacro test

sectionEnd

;Don't work ???
LingoSag is offline   Reply With Quote
 
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