Page 1 of 1

Environment Variables not set on Windows 2003 Server

Posted: Sat Jul 28, 2007 6:38 pm
by rlangham
On Windows 2003 Server 64-bit the Environment variables are not set properly. If after running the install, you open up a new CMD prompt, you will see that they are not set. If you go into Control Panel / System / Advanced / Environment Variables, they are specified correctly there. Press OK and then open a new CMD prompt and they are there correctly.

I had this issue with another installer also, to resolve, I had to do a

PostMessage(HWND_BROADCAST,WM_INICHANGE,0,"Environment")

This notifies Windows of the change.

I attempted to do this with Call DLL Function and not having much success. i I tried different combinations of trying to pass the values
HWND_BROADCAST = 0xFFFF = 65535
WM_INICHANGE = 0x1A = 26

User32.dll ->PostMessageA and also User32 -> PostMessage

e.g.
double word = 65535
double word = 26
double word = 0
poniter to string = "Environment"

also tried variations using Long, etc.

Ideally, InstallAware should take care of this after any Environment updated, but trying to find workaround for now.

Thanks,
Ron

Re: Environment Variables not set on Windows 2003 Server

Posted: Thu Sep 01, 2011 6:56 am
by ckaware
Hello Ron,

Did you ever figure this out? :-D

Thanks,

Chris