Venu
2nd September 2004 05:09 UTC
Can a NSIS Function/Section return a value
Hi all,
I am very much new to NSIS, and I have not got any detailed tutorial for NSIS functions and Sections.
My question is, I want to define some functions in .nsh file and I want those functions to return some value when I will call those functions from the .nsi script file. Can I do this?
Plz help me out?
Thank u.
Venu
flizebogen
2nd September 2004 08:52 UTC
As far as i know it is only possible by using variables
Venu
2nd September 2004 09:31 UTC
Ok... than how can u access the variables declared in .nsh files in the .nsi script file.
Thanks
Venu
KrYpT
2nd September 2004 16:46 UTC
All variables are global. You can access them anywhere.
Another (less convenient but less error-prone) way to return a value from a function is to push the result to the stack before you return.
Venu
2nd September 2004 16:57 UTC
Thanks for reply. Its working with global variables.
Regards
Venu