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
- :
- Re: exit code of a vbscript as a custom action
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
‎Sep 14, 2009
06:43 AM
exit code of a vbscript as a custom action
hi !!! 🙂
Please can anybody tell me how can i use the exit code of a vbscript ran as a custom action.
Thanks
Please can anybody tell me how can i use the exit code of a vbscript ran as a custom action.
Thanks
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2009
07:36 PM
There's not an easy way to get the exit code; common practice is to set a property in the VBScript action, using Session.Property("MYPROP")="myvalue", and then use the property value back in the main installer.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 15, 2009
04:34 AM
Also to add to Robert's words of wisdom, usually you have the script run with on error resume next. Then at various points in your script you can read the err.number to see if an error occured. That way you can tailor the 'return code' dependant on the error in your session.property("PROPERTY")