While trying to run a (console) application and get the return code, I tried to use LaunchAppEx from the InstallSite samples.
Now I get a strange behaviour of the install process: when WaitForSingleObject(piData.hProcess, nTimeOut);
waits for the app for the given time, the app does not work anymore.
Just after the end of the timeout interval, the application seems to finish normally.
When I debug and wait for the application to finish before I step to the lines with the WaitForSingleObject-call, everything runs fine.
Any idea?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Problem with LaunchAppEx
Started by
Perotin
, Sep 02 2002 17:24
1 reply to this topic
Posted 04 September 2002 - 07:08
This might be a problem if the launched application sends messages to other Windows. For instance IS 5 setups are known to use SendMessage (instead of PostMessage) to all other top level windows. Since LaunchAppEx doesn't service the message queue while waiting, the other application may appear to be blocked.
Stefan Krüger
InstallSite.org twitter facebook