Create a macro or a
Set Macro step action and check its
Add to environment variables property -- Visual Build adds/updates that macro as an environment variable for all subsequent steps that are built. The
Advanced.bld sample includes a section which demonstrates this. The sample also demonstrates how this can be accomplished via script code (useful when setting many variables at once).