Archive: Compile-time Environment Variables vs. Run-time Environment Variables


Compile-time Environment Variables vs. Run-time Environment Variables
I know about the built in variable for X:\Program Files during installation: It is $PROGRAMFILES

However, I need one for my development environment as well (my %HOMEDRIVE% is not C: but rather G:). Unfortunately $PROGRAMFILES does not expand at NSIS script compile-time.

Is there a way to use system environment variables in an NSIS script? (I tried $HOMEDRIVE but it didn't work).

Thanks,
Victor


Re: Compile-time Environment Variables vs. Run-time Environment Variables

Originally posted by vc6
Is there a way to use system environment variables in an NSIS script? (I tried $HOMEDRIVE but it didn't work).
Am I stupid or what? A few seconds after I posted this question I found the answer in the documentation: $HOMEDRIVE won't work, but $%HOMEDRIVE% works.

I am happy now. :)