This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Launchapplication not waiting for child processes to terminate
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2010
04:09 AM
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.
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.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2010
09:01 AM
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.
LaunchApplication
I'm not sure if the conditions described there apply to your scenario, but it might worth trying.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2010
05:51 AM
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);
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);