Archive: How many variables can be declared?


How many variables can be declared?
I have a script with now nearly 70 additional (unique) variables - and i get error on the 71. Is there a limit?

NSIS is still v2.17 here - might that fixed with a newer release?


What error?


although it is declared i get sytnax error:

Var PIDCHECK

...

;reset error flag
StrCpy $ERROR "0" <-- ok
StrCpy $PIDCHECK "0" <- fault

StrCpy $ERROR "0" () () <-- ok
Usage: StrCpy $(user_var: output) str [maxlen] [startoffset]

If i chose $0 it works ($ERROR works too)

# i had same trouble with $COMAPP but i dont needed it further so i didnt mind on it


Works fine for me. Attach a complete minimal example reproducing the problem.


hmm, works here too - strange...

omg - guess why...

  Var SYSDIR2          ;has / instead \ 
Var PIDCHECK ;pid check flag

the last \ causes it - i remember it anyway