andFunction instVid
${If} $video = "0"
MessageBox MB_OK "$source"
Call instVideo
${EndIf}
FunctionEnd
The functions are in 2 separate NSI files:Function instVideo
MessageBox MB_OK "$source"
FunctionEnd
- instVid is in Setup.nsi where I have an
!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!