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 from Custom Action used in Condition
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 24, 2010
03:10 PM
exit code from Custom Action used in Condition
Hello, I would like to know how to use the exit code from a VBScript Custom Action as a condition to fire another Custom Action? The first Custom Action (VBScript) returns 0 if I need to fire the second Custom Action which is sequenced immediately after the VBScript Custom Action. So, my install UI condition for executing the second Custom Action is something like this:
caCheckIfIISIsInstalled = "0"
However, this does not seem to work even though the logfile indicates that the VBScript Custom Action indeed has a return value of 0. The line from the installer log is: Skipping action: caInstallIIS (condition is false).
Not sure what I am doing wrong here?
Any help would be appreciated!
Thanks.
caCheckIfIISIsInstalled = "0"
However, this does not seem to work even though the logfile indicates that the VBScript Custom Action indeed has a return value of 0. The line from the installer log is: Skipping action: caInstallIIS (condition is false).
Not sure what I am doing wrong here?
Any help would be appreciated!
Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2010
03:29 PM
I don't think you can use the exit code directly; perhaps set a property in the first action (Session.Property("ItWorked")="Yes!") and then use the property in a condition on the second action?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2010
03:35 PM
Thanks for the quick reply Robert! I will give that a try.
Tim
Tim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2010
04:12 PM
That did the trick Robert, thanks!
Tim
Tim
