Updating Environment Variables
Posted: Fri Jul 27, 2007 12:02 pm
On 64-bit Windows 2003 Server (may occur in other environments), when setting Envionrment variables they are not recognized by the system until I go into Control Panel \\ System \\ Advanced \\ Environment Variables and then close the dialog by pressing OK.
For example, after an install if I open up a new CMD prompt, the environtment variables are not present. Once I do the steps above and open new CMD prompt they are present.
I had this issue in InstallShield and currently evaluationg InstallAware due to too many problems with InstallShield and InstallAware looks great! In InstallShield I had to do a Win32 PostMessage(0xFFFF,0x001A,0,"Environment") in order to notify Windows itself of the Env change.
I was hoping that I did not have to do this with InstallAware and it would do this automatically. I do not see option to do this. I will investigate using the Call Dll Function.
For example, after an install if I open up a new CMD prompt, the environtment variables are not present. Once I do the steps above and open new CMD prompt they are present.
I had this issue in InstallShield and currently evaluationg InstallAware due to too many problems with InstallShield and InstallAware looks great! In InstallShield I had to do a Win32 PostMessage(0xFFFF,0x001A,0,"Environment") in order to notify Windows itself of the Env change.
I was hoping that I did not have to do this with InstallAware and it would do this automatically. I do not see option to do this. I will investigate using the Call Dll Function.