I have searched a lot on this topic on internet but can find a decent solution to it.
I want my application to get and set Environment Variable values as soon as it is started but it seems that i need administrator privileges for it. Now the problem is that i cannot set the EXE to "Run As Administrator" because on starting the application, it always prompts for admin permission.
Is there any way to avoid the admin privileges prompt programatically?
Here are the following articles i tried which didn't work :-