Question

Q: How can I access system environment variables?

I would like to be able to access system environment variables through my installer.

Answer:

You can access any system environment variable using the ${env(varname)} construct, where varname is the name of a system environment variable. For example, on Windows you can refer to the system drive with ${env(SYSTEMDRIVE)} and in Unix to the user home directory with ${env(HOME)}