Archive: use your variables wisely


use your variables wisely
just a bit of advise...(anyone who has had similiar experience, please add on here).

I initially reserved all the $Rn variables (n|0..9) for globals or other 'non-working' variables and hoped I would get by. As this installer adds functionality, I am finding that I should have used perhaps $r0 - $r4 for working variables and saved the rest. Problem is that some of my functions need 7 or 8 variables...


that's the reason, why every really good coded function in the nsis archiv uses lots of "push", "pop" and "exch" :)
the stack solves all our var-problems :)
e.g. take a look at the ones in my sig.


This is the old NSIS 1 system, NSIS 2 allows you to declare your own variables using the Var command.