Post a reply to the thread: Implement changes to Environment Variables
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
Will turn www.example.com into [URL]http://www.example.com[/URL].
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
Re: Implement changes to Environment Variables
Re: Implement changes to Environment Variables Is there a command within SetupBuilder to put this timeout anywhere withing the script?
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
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
Implement changes to Environment Variables
Forum Rules