How can you set permanent user environment variables from within VB6 code for an app that will be run under non-administrator rights?
I know of SetEnvironmentValue but apparently this only changes the vars for the current process which is insufficient for my needs.
Because the environment variables are possibly stored in the HKLM registry I am concerned that a non-administrator user running my app will not be able to set the env var.
For the current user, environment variables are stored under
/HKEY_CURRENT_USER/Environment, which shouldn’t require elevated privileges.