dwybo1
10-05-2004, 02:15 PM
I am modifying environment variables in my install script. It works fine except I have to tell the user to reboot before they can use my software, because the environment variables have not taken effect.
An old info document for SetupFactory version 6 (Document ID: IR02020) states:
Use a Modify Registry action to set your environment variable in the registry.
NOTE: When setting variables like this on Windows 9x or Windows NT, the system MUST be restarted for them to take effect.
I am doing this. However, if I manually create/modify environment variables with (WinXP) System->Advanced->Environment Variables, and press OK, then all processes are updated with the new environment. So, that begs the question, what does pressing that OK button do to update the registry without having to reboot?
And if we know that, then can we put that into the install script and change the registry without having the user to reboot for the changes to take effect?
An old info document for SetupFactory version 6 (Document ID: IR02020) states:
Use a Modify Registry action to set your environment variable in the registry.
NOTE: When setting variables like this on Windows 9x or Windows NT, the system MUST be restarted for them to take effect.
I am doing this. However, if I manually create/modify environment variables with (WinXP) System->Advanced->Environment Variables, and press OK, then all processes are updated with the new environment. So, that begs the question, what does pressing that OK button do to update the registry without having to reboot?
And if we know that, then can we put that into the install script and change the registry without having the user to reboot for the changes to take effect?