Reply to Thread

Post a reply to the thread: Implement changes to 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)

  • 01-27-2010, 12:08 AM
    linder

    Re: Implement changes to Environment Variables

    Hello,

    This function is automatically called from the installer.

    But it should be possible to use the "Call Dll..." script function to call this SendMessageTimeout Windows API programmatically from your script.

    Does this help?

    Friedrich
  • 01-26-2010, 01:42 PM
    glewis64

    Re: Implement changes to Environment Variables

    Is there a command within SetupBuilder to put this timeout anywhere withing the script?
  • 09-04-2009, 01:03 AM
    linder

    Re: Implement changes to Environment Variables

    James,

    Then installer uses the following function to propagate changes:

    SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) "Environment", SMTO_ABORTIFHUNG, 5000, &dwReturnValue);

    http://support.microsoft.com/default...en-us%3b104011

    Friedrich
  • 09-03-2009, 12:37 PM
    Unregistered

    Implement changes to Environment Variables

    Our script changes environment variables, but the changes are not seen systemwide until the user reboots.

    In other words, the set commands in SetupBuilder are working. I can see the new variables when I go to Advanced Setttings on the Computer and look at the environment variables. So, the registry has been updated.

    However, when I open a new DOS command prompt and type Set and hit enter the variables are not there.

    Is there a command in SetupBuilder (or a call I can make) that will implement the changes for all new processes? I don't want the user to have to reboot in order to use the app.

    Thanks,

    James

Posting Permissions

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