PDA

View Full Version : exit code from Custom Action used in Condition



timstspry
09-24-2010, 03:10 PM
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.

RobertDickau
09-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?

timstspry
09-24-2010, 03:35 PM
Thanks for the quick reply Robert! I will give that a try.

Tim

timstspry
09-24-2010, 04:12 PM
That did the trick Robert, thanks!

Tim