Prev Previous Post   Next Post Next
Old 24th June 2015, 09:54   #1
Mircea M
Junior Member
 
Join Date: Aug 2014
Posts: 44
Issue with variables

Hi, I have the following function 2 functions:

code:
Function instVid
${If} $video = "0"
MessageBox MB_OK "$source"
Call instVideo
${EndIf}
FunctionEnd



and

code:
Function instVideo
MessageBox MB_OK "$source"
FunctionEnd



The functions are in 2 separate NSI files:
  • instVid is in Setup.nsi where I have an
    code:
    !include Video.nsi
  • instVideo is in Video.nsi where only this function is declared.

The variable $source is declared globally, in Setup.nsi and it's value is set in another function, also in Setup.nsi.

My problem is that the MessageBox in instVid shows "C:\install" but the one in instVideo "$source" (when it should show the same thing as before).

What am I missing here? Please help!

Thank you!
Mircea M 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