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

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.
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

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?
0 Kudos
timstspry
Level 7

Thanks for the quick reply Robert! I will give that a try.

Tim
0 Kudos
timstspry
Level 7

That did the trick Robert, thanks!

Tim
0 Kudos