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: How to get the batch file status still running or completed the .bat file execution
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
‎Apr 20, 2015
05:13 AM
How to get the batch file status still running or completed the .bat file execution
HI All,
I am executing the .bat file from the "LaunchAppAndWait" API. How to get the batch file status still running or completed the .bat file execution.
How to get the status using install Script. If any one knows Please help me.
Or how to wait installation application up to complete of the .bat file.
Thanks and Regards,
Manoj Kumar Unnam
I am executing the .bat file from the "LaunchAppAndWait" API. How to get the batch file status still running or completed the .bat file execution.
How to get the status using install Script. If any one knows Please help me.
Or how to wait installation application up to complete of the .bat file.
Thanks and Regards,
Manoj Kumar Unnam
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2015
06:42 AM
"LAAW_OPTION_WAIT" will actually wait for the completion of the launched process.
And if you are looking for the return code from the launched application you can check for nLaunchResult.
And if you are looking for the return code from the launched application you can check for nLaunchResult.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2015
12:49 AM
Hi rrinblue22,
Thanks for your reply. I am using the API as,
LaunchAppAndWait (batch_filename, "", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
application is not waiting up to complete of the batrch_filename file execution.
this will provide only the "batch_filename" is launched successfully or not.
I want to wait the install shield application up to completion of the "bathc_filename" file execution.
Thanks and Regards,
Manoj Kumar Unnam
Thanks for your reply. I am using the API as,
LaunchAppAndWait (batch_filename, "", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
application is not waiting up to complete of the batrch_filename file execution.
this will provide only the "batch_filename" is launched successfully or not.
I want to wait the install shield application up to completion of the "bathc_filename" file execution.
Thanks and Regards,
Manoj Kumar Unnam
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2015
01:31 AM
Ideally the parameter supplied here will make Installer wait for the completion of the launched process which is batch file in your case.
How did you determine that the installer is not waiting for completion?
Try this, which should help you display the launched batch file.
LaunchAppAndWait (batch_filename, "", LAAW_OPTION_WAIT);
Also if this is in an InstallScript Custom Action, please make sure your custom action is set to "Synchronous (check exit code)" in the "Return Processing" setting.
How did you determine that the installer is not waiting for completion?
Try this, which should help you display the launched batch file.
LaunchAppAndWait (batch_filename, "", LAAW_OPTION_WAIT);
Also if this is in an InstallScript Custom Action, please make sure your custom action is set to "Synchronous (check exit code)" in the "Return Processing" setting.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2015
03:49 AM
Thanks,
This is not a custom action. This project is a install script executable project. Writing the once function with in the function i placed this condition.
If this project is a Basic MSI Project. Then we will create a custom action then will provide the "Returning process" value as "Synchronous (Check exit code)".
Thanks and Regards,
Manoj Kumar Unnam
This is not a custom action. This project is a install script executable project. Writing the once function with in the function i placed this condition.
If this project is a Basic MSI Project. Then we will create a custom action then will provide the "Returning process" value as "Synchronous (Check exit code)".
Thanks and Regards,
Manoj Kumar Unnam
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)