Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   sectionname as variable (http://forums.winamp.com/showthread.php?t=270980)

adrian22 11th May 2007 07:34

sectionname as variable possible?
 
Hi,

is it in anyway possible to use an variable as sectionname?

i will create a variable on runtime and give the section an name that i have read from an file

i tryed:



strcmp $name "read that name from an other/outer source"

section /o $name
#
#code
#
sectionend

this does not work.
can anyone help me?

is it possible to use this

$(for) $R 1 to 9
section $R
#
#code
#
sectionend
$(next)

Anyone an idea? Thanks

Red Wine 11th May 2007 12:41

You need SectionSetText instead,

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.13.3

adrian22 11th May 2007 15:03

Quote:

Originally posted by Red Wine
You need SectionSetText instead,

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.13.3

Thanks - thats what i'm looking for


All times are GMT. The time now is 05:38.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.