I always get the list of the system variable (of the machine) back although the EnvironmentVariableTarget is set to user. Here my Code:
string pathVariable = "Path";
string pathVariableUser = Environment.GetEnvironmentVariable(pathVariable, EnvironmentVariableTarget.User);
I like to change the system variable with WIX toolset with an installer. If I run this code in as "normal" command line app, I have no problems and I get the correct value.
Do you know what the problem is?