cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Amarjeet
Level 7

Get exit code from Custom Action which Invokes an Installation.

Hi

I would like to get exit code from an .exe based installation which is invoked from custom action.

Return processing : Asysnc ( No wait for completion )
In script execution : Deferred Execution in System Context.

Can somebody give example how to get the exit code. I have seen a lot of documentation on internet / forums but no clear example.

Thanks in advance

Amarjeet
Labels (1)
0 Kudos
(3) Replies
Christopher_Pai
Level 16

Windows Installer doesn't support this. WiX QuietExecuteCA doesn't either. The only way I know how to do it is to write a custom action to act as an EXE wrapper to wait for the EXE to finish and get the exit code.
0 Kudos
Amarjeet
Level 7

Hi Christopher,

Thanks for lightening update.

I am eager to know about this. Can you please explain in detail.

Amarjeet
0 Kudos
rrinblue22
Level 9

InstallScript LaunchApplication can get you the return code of the launched application in case of it's failure.

Refer to: Return Values section in the link
0 Kudos