Hi All,

I have a small problem with a script I'm calling from a CA type 6. The error I'm getting is:
Microsoft VBScript runtime error
Message:Object doesn't support this property or method 'wscript.quit'

Background: Script searches the wmi for any versions of Citrix installed on a PC and returns a 1 or 0. (script created by a colleague).
I'm using the 'wscript.quit (result)' to set a Property in my msi to launch a separate dialog box during install.

I've tried embedding it in a wise script file resulting in the same error.

Any ideas on overcoming this appreciated,

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


The wscript direction cannot be used within a custom action.
To set a property from a vbscript you can use session.property("MY_PROPERTY_NAME") = result, then use that property for your next dialog.
Answered 09/04/2008 by: AngelD
Red Belt

Please log in to comment
Wayne, change your CA and script structure so that it uses/calls a function and use the function to return zero (success) or non-zero (failure).
Answered 09/04/2008 by: VBScab
Red Belt

Please log in to comment
Thanks guys for the responses.

Thanks Kim
This worked fine and returned the Property values we were after. We also found this post from Brent (way back).

Thanks Ian
We are already using a function call. Appreciate that we were on the right track thou. It was just the "nigly bits".

Appreciate the replies,

Answered 09/04/2008 by: WayneB
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity