Bryan

Bryan

  • NA
  • 119
  • 0

Environment Variables Return Null

Mar 13 2010 6:06 PM
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?

Answers (3)