Updating Environment Variables

For all your non-technical questions.
Post Reply
rlangham
Posts: 14
Joined: Tue Mar 27, 2007 12:01 pm

Updating Environment Variables

Post by rlangham »

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.
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Ah, interesting tip there. Yes, you'll still need to make the posting. Just insert the Call DLL Function command after Apply Install and you should be all set!
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply