This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- exit code of CA
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2009
10:16 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 15, 2009
01:12 PM
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
Return Values of JScript and VBScript Custom Actions
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 16, 2009
01:06 PM
Thank you very much.
That's exactly what I was looking for. now it works perfectly fine!
That's exactly what I was looking for. now it works perfectly fine!