/build/static/layout/Breadcrumb_cap_w.png

wscript.quit error

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

Answers (3)

Posted by: AngelD 16 years ago
Red Belt
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.
Posted by: anonymous_9363 16 years ago
Red Belt
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).
Posted by: WayneB 16 years ago
Blue Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ