+ Reply to Thread
Results 1 to 4 of 4

Thread: Setting User Environment Variables

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Setting User Environment Variables

    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.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Setting User Environment Variables

    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

  3. #3

    Default Re: Setting User Environment Variables

    Yes it does. Thank you.

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Setting User Environment Variables

    You are very welcome

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •