Reply to Thread

Post a reply to the thread: Setting User Environment Variables

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 09-28-2010, 06:45 AM
    linder

    Re: Setting User Environment Variables

    You are very welcome

    Friedrich
  • 09-28-2010, 06:41 AM
    andrew.oberstar

    Re: Setting User Environment Variables

    Yes it does. Thank you.
  • 09-28-2010, 12:14 AM
    linder

    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
  • 09-27-2010, 02:48 PM
    andrew.oberstar

    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.

Posting Permissions

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