I am trying to set environment variables during an install in order to pass them to PowerShell scripts that communicate with a SQL server instance during setup. It doesn’t appear that SetupBuilder updates the environment variables at all. Here is what I found in the documentation:

“On Windows NT-based systems, environment modification information is stored in the registry and a message notifies the system of changes when the installation completes. Any new processes, or existing processes that check for these messages, use the new or updated environment variables.”

Does this mean that environment variables will not be updated until the SetupBuilder dialog completes? And if so, is there a way to force SetupBuilder to update the environment variables immediately so that I can pass them to my PowerShell script that checks for a specific environment variable.