View Full Version : Setting User Environment Variables
andrew.oberstar
09-27-2010, 02:48 PM
Is there any way to set user environment variables?
I didn't see any threads on the forum or anything in the help relating to this.
linder
09-28-2010, 12:14 AM
Andrew,
You can use the "Edit Environment Variable..." script function to add and remove (system) environment variables.
User-specific variables are located in HKEY_CURRENT_USER\Environment. You can't handle this from an elevated running installer, so "user-specific" environment variable manipulation is not built-in and you have to handle this via the registry functions. Please note that you should never do any per-user data manipulation from an elevated running app because you are doing this in the wrong user context if the app has administrator execution level privileges.
Does this help?
Friedrich
andrew.oberstar
09-28-2010, 06:41 AM
Yes it does. Thank you.
linder
09-28-2010, 06:45 AM
You are very welcome :)
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.