#define WM_SETTINGCHANGE 0x001A
#define HWND_BROADCAST 0xffff
POINTER pEnv;
program
//
//
//
This is where I add several environment varible to the registry like
MY_HOME, LIB, and additions to the PATH statement.
//
//
szEnv = "Environment";
pEnv = &szEnv;
SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, 0, pEnv);
//
//
endprogram
During the installation when it gets to the SendMessage command the
setup program just hangs. If I look in Task Manager the setup program is
no longer responding so I have to End Task. When I go to the Command
Prompt I noticed that the environment varibles have been set and sent to
the Windows NT OS. I believe that the install program is not getting a
response back from the Windows API and then therefore it hangs. Then
again, I'm not a programmer.
Am I doing something wrong or did I hit a bug. Any help is greatly
appreciated. Thanks in advance.
Bill
P.S.
I'm using Professional version 5.51 of InstallShield and here are the
dates of my files:
---Redistributable Files\English-Windows 3.x---
setup.exe-5.50.137
_setup.dll-5.50.134
_isres.dll-5.50.131
_inst16.ex_-5.50.137
isun16.exe-5.51.138
---Redistributable Files\English-Windows 95/98 & NT 3.51/4.0---
setup.exe-5.50.137
_setup.dll-5.50.134
_isres.dll-5.50.131
_inst32i.ex_-5.50.137
isuninst.exe-5.51.138
---Program Files---
IDE.exe-5.50.136
BuildWiz.dll-5.50.135
Compiler.dll-5.50.134
ZDataI51.dll-5.50.131
ISEdt.dll-5.50.134
ISCore.dll-5.50.135
Build.dll-5.50.135
ISBuild.exe-5.50.134
ISCAB.exe-5.50.134
Compile.exe-5.50.134
Fred
Bill Keane wrote in message <37BB36C6...@Cyborg.com>...
Kind regards,
Eric
InstallShield Support
I got this idea originally from a Knowledge Base article Q100090 which gives
examples for SendMessage in the attached rul files. I originally wanted to
launch a series of batch files that referanced the MYAPP_HOME varible and I
wanted to lauch these before a reboot. I do not want to modify each of the
batch files in order to launch them. and the batch files are doing things
that themselves require a re-boot (Updateing service file, create an Orbix
Naming Service, registering applications to the Orbix daemon, for example).
So I do not want to launch these batch files after a re-boot because that
would require my users to re-boot twice.
Is this a function (SendMessage/PostMessage) that really works? Or should I
just bit the bullet and have them re-boot twice.
Any help is greatly appreciated.
Bill
InstallShield Software Corp. wrote in message
<37bc6...@news.installshield.com>...