
renu.elex1.5524903558101877E12 asked a question.
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.
LaunchApplication
I'm not sure if the conditions described there apply to your scenario, but it might worth trying.
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);