If I'm not mistaken, all discussion about environment variables (EVs) in NSIS docs (eg ReadEnvStr
), deal with EVs in the target computer: all happens at install time.
I wonder if there is any support for accesing EVs on the developer (build) machine, at compile time. Specifically, suppose I have
!define SRCDIR "C:\progs\version1\src"
...
File /r "${SRCDIR}\*.*"
and I'd rather want to write
!define SRCDIR "%{PROG_DIR}\src"
(or something similar), where PROG_DIR
is an environment variable.
Can this be done?
!echo "$%temp%"
I'm pretty sure this is documented somewhere.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With