Environment Variables
Posted 23 March 2001 - 17:45
Posted 23 March 2001 - 17:55
There is a way to tell Windows to refresh its environment; I can look it up if necessary but I believe it is in the documentation somewhere.
Posted 23 March 2001 - 18:11
Posted 26 March 2001 - 15:46
// Defines for letting Windows know there's been an
// environment change
#define WM_SETTINGCHANGE 0x001A
#define HWND_BROADCAST 0xffff
...
// Somewhere in the code, usually just after the change
// in the environment has been made
szEnv = "Environment";
pEnv = &szEnv ;
SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, 0, pEnv );
More accurately, what this does is broadcast a message to all applications that there's been a change in the environment.
This was documented in earlier versions of IS; I don't know if it is (or isn't) in current documentation.
Posted 27 March 2001 - 10:53
Does somebody have a better solution for this problem?
Regards,
Richard
Posted 27 March 2001 - 13:13
Richard
Posted 27 March 2001 - 17:55
Posted 27 March 2001 - 18:20
which handle do you mean. hMSI which is passed to every CA or any other?
Thanks,
Richard
Posted 27 March 2001 - 19:39
Posted 31 August 2001 - 02:36
I am trying to get this SendMessage method to work....do I just put this code you talk about into my setup.rul and have a CA call this installscript code?
kris