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

exit code of CA

Hello,

I'm fairly new to InstallShield and have problem with one of my installations.
I'm using a custom action (vbs) to install a thirdparty program which is used by our program. the action is execution of the script is set to "deferred execution".
executing the other setup is no problem and I also get the correct return code from this setup.
But I don't know how to exit the custom action with a specific exit code to fail the setup in case I got the wrong return code from the other setup.

i already tried using Quit(x) and WScript.Quit(x) but the script is always return 1 even if the external program failed.

has any one an idea how to do that?

thanks,
Jope2000
Labels (1)
0 Kudos
(2) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

For a VBScript custom action return value to affect the parent installation process, the custom action needs to be type 6 (New VBScript->Stored in Binary table in InstallShield). The following article contained some further information on how to return values from VBScript custom actions:
Return Values of JScript and VBScript Custom Actions
0 Kudos
Jope2000
Level 3

Thank you very much.

That's exactly what I was looking for. now it works perfectly fine!
0 Kudos