cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Shilpa_Mittal
Level 2

How to debug batch scripts

Hi ,

I am executing batch script through my installer .I have used a display message panel,that if it gets unsuccessful ,then the $EXECUTE_VIEW_STDERR$
================================
$EXECUTE_VIEW_STDOUT$ should be displayed.

I have set the rules also ,that $EXECUTE_VIEW_EXITCODE$ should not be equal to 0.

Now when script is not found in the path,then this message is getting displayed properly.But when the script is getting fail,I am not getting this error panel,and installer shows successful installation.

What should i do to check that the script called from inside the installer is successful or not ?

Regards
Shilpa
Labels (1)
0 Kudos
(1) Reply
nosrednayduj
Level 7

In my experience IA batch scripts don't propagate the exit code from the contents of the script. So if your script calls something that gets an error, you don't see the error in $xxx_EXITCODE$; it still has 0. So instead you have to have your rule do $xxx_STDERR$ "does not contain" .
0 Kudos