NSIS: use environment variable at compile time?

If I am not mistaken, all discussions of environment variables (EV) in NSIS docs (for example, ReadEnvStr ), deal with EVs on the target computer: everything happens with the installation .

I wonder if there is support for using EV on the developer's machine (assembly) in compilation . In particular, suppose I have

 !define SRCDIR "C:\progs\version1\src" ... File /r "${SRCDIR}\*.*" 

and I would rather write

 !define SRCDIR "%{PROG_DIR}\src" 

(or something similar), where PROG_DIR is an environment variable. It can be done?

+6
source share
1 answer
 !echo "$%temp%" 

I am sure this is documented somewhere.

+8
source

All Articles