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
Answers (1)
Please log in to answer
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