Environment Variables not set on Windows 2003 Server

Got a problem you cannot solve? Try here.
rlangham
Posts: 14
Joined: Tue Mar 27, 2007 12:01 pm

Environment Variables not set on Windows 2003 Server

Postby rlangham » Sat Jul 28, 2007 6:38 pm

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

ckaware
Posts: 125
Joined: Thu Mar 17, 2011 11:43 am

Re: Environment Variables not set on Windows 2003 Server

Postby ckaware » Thu Sep 01, 2011 6:56 am

Hello Ron,

Did you ever figure this out? :-D

Thanks,

Chris


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 71 guests