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   [ - ] Hide 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")
    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'.
Please log in to comment

Answer this question or Comment on this question for clarity



Wscript calls will throw error inside MSI.

Answered 03/06/2014 by: karockiad
Orange Belt

Please log in to comment