How to use environment variables when creating an installation
Sometimes you may need to use the current environment variables like %VARNAME% in the project when creating the installation. For example, you need to specify a file or output directory as %MYPATH%\Folder. This can be useful when the same project is used on computers with different settings. You can not specify environment variables directly in the project parameters, but you can use global variables for these purposes.
As you know, global variables can be defined as common for all projects through the menu item Tools - Global Variables or you can define global variables for a particular project in the Project - Preprocessor - Multi-Builder settings. In our example, we just need to add a global variable:
and then use it in the project settings as $mypath$.