I'm having a problem where my program is returning null for environment variables that my installer is setting. I checked the Advanced settings of the computer, and the variable values are all correct, but inside my program the values are returning null.
I'm using the following code to store the value: string envirVar = System.Environment.GetEnvironmentVariable("InstallUser");
Can anyone help?
Environment Variables Return Null
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Mar 15, 2010, 9:46 PM EDT
Bryan65 pointsPosted Mar 15, 2010, 9:49 PM EDT
Bryan65 pointsPosted Mar 17, 2010, 4:52 AM EDT