The application I want to use needs the HOMEPATH environment to be set in order to work flawlessly. It's usually no problem because it's set by default. Here's the cmd dump:
C:\Users\xxxx>set home HOMEDRIVE=C: HOMEPATH=\Users\bert
The problem comes when I try to elevate the application's privilage to Administrator (by right-clicking -> Run as Administrator). The application can't find the HOMEPATH. SO I try to run the same command as above in a cmd window that's also elevated. Lo and behold:
C:\windows\system32>set home Environment variable home not defined
Why? And how can I fix this? I've search all over the place with no result :(
I'm also not sure how to set the HOMEPATH per user, as I find no sufficient documentation on this, both on MSDN and the Internet.
EDIT TO PROVIDE MORE CONTEXT
I have two users on my machine, one is on the Administrator Group, and one as the normal user (Users Group). For my dialy use, I run under the normal user, and for the run as administrator command, I run as the other user. That user on the Administrator Group is not "Super-Admin" which require no UAC prompt, it is the user that's created when we install windows. Is there any information I need to add?