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

How I can set the errorlevel/LAAW_PARAMETERS.nLaunchResult for the calling Cmd/Setup

I have 2 Setups:
Setup 1 call Setup 2 over “LaunchApplication (strStartPgm, StrStartPgmCmdLine, "", SW_NORMAL, INFINITE , LAAW_OPTION_WAIT_INCL_CHILD);”

How I can set the or LAAW_PARAMETERS.nLaunchResult for the Setup 1 if the user for example cancel the setup 2 and continue doing set the %Errorlevel% for the calling cmd in Setup 1

For Inforation: its a pure Installscript Project


Thanks
Labels (1)
0 Kudos
(1) Reply
rrinblue22
Level 9

nLauchResult is basically a return code from the application which is launched.

In your example .... Setup2 will return a non-zero number to setup1 as it's being cancelled by the user.

Using this value you can conditionally perform any custom task.
0 Kudos