Skip to content
⌘ NSIS Forum Archive

How many variables can be declared?

5 posts

Brummelchen#

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?
Brummelchen#
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
kichik#
Works fine for me. Attach a complete minimal example reproducing the problem.
Brummelchen#
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