Old 26th March 2012, 09:36   #1
Masternoob
Junior Member
 
Join Date: Feb 2012
Posts: 16
howto define variable in .onInit and use it in pages

is there a way to define a variable in .onInit and then use it in all pages?

i am trying to do this because i need to change the pages dynamically with this parameter...

i already tried !define variable... it works but the problem is that you can't change this value at runtime...or at least i haven't found a way to do so

thx for your help

EDIT: Ok i am stupid, you have to declare the variables before the pages *facepalm*
Masternoob is offline   Reply With Quote
Old 26th March 2012, 19:49   #2
redxii
Senior Member
 
Join Date: Nov 2005
Posts: 115
Use 'Var' to make a variable. Use /GLOBAL (ex 'Var /GLOBAL MyVar') if used in a section or function.
redxii 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