cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RainyS
Level 3

Launchapplication not waiting for child processes to terminate

Hi,
I have upgraded code from Installshield 2008 to Installshield 2010, but now launchapplication function is not waiting for child process to terminate and starts another installation.

LaunchApplication(CMD_LINE,"/s /v/qn","",SW_NORMAL,WAIT,LAAW_OPTION_WAIT_INCL_CHILD|LAAW_OPTION_USE_SHELLEXECUTE);

Does WAIT does not work in Installshield 2010. it was working for 2008.
I guess ntimeout parameter is set to WAIT which is not waiting for child processes to terminate.What could be other value for ntimeout parameter so that launchapplication start to wait for child process to terminate for Installshield 2010.
Labels (1)
0 Kudos
(2) Replies
DebbieL
Level 17

Have you tried passing the /clone_wait parameter? It's described in the last bullet point at the bottom of the following help topic:
LaunchApplication
I'm not sure if the conditions described there apply to your scenario, but it might worth trying.
0 Kudos
J_anitha
Level 8

Try this way:

nError = LaunchAppAndWait( szProgram, szCmdLine, LAAW_OPTION_WAIT|LAAW_OPTION_SHOW_HOURGLASS);
if(ISERR_SUCCESS != nError) then
MessageBoxEx(szMsg, IFX_PRODUCT_NAME, SEVERE);
else
WaitForApplication( LAAW_PROCESS_INFORMATION.hProcess, 0, INFINITE, LAAW_OPTION_WAIT_INCL_CHILD|LAAW_OPTION_WAIT);
0 Kudos