Environment Variable set after FinalBuilder exits

Is there any way to have FinalBuilder set an enviroment variable so after it exits the value is there in an environment variable?  Currently any changes are thrown out when Finalbuilder exits.

Hi Lance,

This is a little bit hard in FB, because of the way Windows works. Each process gets its own copy of the environment values, so the changes are not automatically propagated “up” to other processes.

There is a Scripting Guy article which shows how to use WMI to set an environment variable value at the top level, so it will stay after FB exits. Note that the new value will only be seen by new processes, not currently running processes.

http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar05/hey0318.mspx

(You have to scroll down a bit for the “set value” part, the top part is involved with creating a new variable.)

You can paste the script from this example into the script event of an FB action, or into a dedicated Run Script action.

Regards,

Angus