cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
thygesen
Level 3

Return code from a third-party executable (SQL Server 2008 Installer)

Hi,

In my installscript I am running an installation of SQL Server 2008. This executable gives a return code:

0x0 for success
0xBC2 for success, but reboot needed

A different, positive value in case of error.

I need to abort the installation if the SQL Server installer fails. Is there any way I can read the return code from the setup executable within my installscript?

Thanks,
thygesen
Labels (1)
0 Kudos
2 Replies
MSIYER
Level 8

Use LaunchAppAndWait with LAAW_OPTION_WAIT parameter. Get the return value of the exe form LAAW_PARAMETERS struct's nLaunchResult variable.
0 Kudos
thygesen
Level 3

Thanks a lot. This was very helpful 🙂

/thygesen
0 Kudos