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,

TIA
Wayne
0 Comments   [ + ] Show Comments

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.

Answers

0
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
0
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
0
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).
http://itninja.com/question/msi-admin-installation3&mpage=1&key=vendor&#8334

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,

Regards
Wayne
Answered 09/04/2008 by: WayneB
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share