Hi Dan,
Thank you for your response. With regard to the first problem, I had a look at the article you suggested (http://support.microsoft.com/kb/104011/en-us) to see if I can force a refresh of the environment variables, but I could not figure out how to define a custom action to refresh variables ...