/build/static/layout/Breadcrumb_cap_w.png

MSruntime VBScript error while running SLEEP command from MSI-Custom Action

created one CA which is running vbscript, to do some function. And there its required sleep commad. from local machine vbscript working fine. when i running from CA its getting below error.

 MSruntime VBScript error

anybody help on this !


1 Comment   [ + ] Show comment
  • I suspect you're trying to use the WScript object's Sleep method, as in 'WScript.Sleep'.

    The Windows Installer uses its own (let's call it) interpreter for WScript and not the standard WScript engine. Therefore, you cannot use any 'WScript' properties or methods. Note that you *can* instantiate WScript objects e.g. WScript.Shell. So, to simplify:
    WScript.Echo "Hello World"
    will fail, as will
    Set objWSHShell = WScript.CreateObject("WScript.Shell")
    but
    Set objWSHShell = CreateObject("WScript.Shell")
    will be OK.

    There are many samples around for simulating the Sleep method, most of which involve PINGing the 'localhost'. - anonymous_9363 10 years ago

Answers (1)

Posted by: karockiad 10 years ago
Orange Belt
0

Wscript calls will throw error inside MSI.

 
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