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
- :
- Error handler for LaunchAppAndWait
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
Mar 24, 2009
04:16 AM
Error handler for LaunchAppAndWait
In my IS 2009 project I launch some LaunchAppAndWait commands.
Is there a way for create an error handler event in order to centralize every error coming from LaunchAppAndWait functions?
For example:
LaunchAppAndWait (App1)
....
LaunchAppAndWait (App2)
....
function OnLaunchAppAndWaitErrorHandler()
begin
// Here I want to LOG the passed parameters, the return value
// and every other info about the launched process
end;
The alternative is to replicate the LOG code near every single call of OnLaunchAppAndWait(), but is a solution that I don't like so much...
Another question, what are the IS function for get info about the launched process?
Thanks a lot!
Bye!
Is there a way for create an error handler event in order to centralize every error coming from LaunchAppAndWait functions?
For example:
LaunchAppAndWait (App1)
....
LaunchAppAndWait (App2)
....
function OnLaunchAppAndWaitErrorHandler()
begin
// Here I want to LOG the passed parameters, the return value
// and every other info about the launched process
end;
The alternative is to replicate the LOG code near every single call of OnLaunchAppAndWait(), but is a solution that I don't like so much...
Another question, what are the IS function for get info about the launched process?
Thanks a lot!
Bye!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 24, 2009
09:42 AM
nvResult = LaunchAppAndWait(szProgram, szArgs, WAIT);
nvExitCode = LAAW_PARAMETERS.nLaunchResult;
nvResult will hold the value returned from LaunchAppAndWait().
nvExitCode will hold the value returned from the application launched.
![](/skins/images/7DF1852B2C95702E61A73F170B191DAC/responsive_peak/images/icon_anonymous_message.png)