I am calling custom vbscript function from my installer.the script alone
works fine but when called from the installer gives following error
Error 1720.There is a problem with this Windows Installer package. A script
required for this install to complete could not be run. Contact your support
personnel or package vendor.
Custom action caInstallSetting
"script error -2146827788, Microsoft VBScript runtime error: Variable is
undefined: 'WScript' Line 171, Column 16"
can some body suggest me the solution
--
Thanks and Regards
Balaram Barange
Persistent Systems Pvt Ltd
> I am calling custom vbscript function from my installer.the script alone
> works fine but when called from the installer gives following error
>
> Error 1720.There is a problem with this Windows Installer package. A script
> required for this install to complete could not be run. Contact your support
> personnel or package vendor.
> Custom action caInstallSetting
>
> "script error -2146827788, Microsoft VBScript runtime error: Variable is
> undefined: 'WScript' Line 171, Column 16"
> can some body suggest me the solution
Hi,
Could you please post script line 171, the one that fails?
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
Jon
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:eWCoWS$aFHA...@TK2MSFTNGP14.phx.gbl...
"Balaram Barange" <balaram...@persistent.co.in> wrote in message
news:%239VxIG%23aFH...@TK2MSFTNGP15.phx.gbl...
Balaram Barange wrote:
> I am using installshield 10.5 and the script line was
> Set oShell = WScript.CreateObject("WSCript.shell")
If the case of the quoted line is accurate, the "WSCript" will be what's
causing the problem, it should be "WScript" - WSH can be picky about text case.
HTH,
Adam Piggott,
Proprietor,
Proactive Services (Computing).
- --
Please replace dot invalid with dot uk to email me.
Apply personally for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFCpspl7uRVdtPsXDkRAoHwAKCDoKU5GEpdceLC8O1yA/Qo4bpuugCfemEb
ud93K61MN9IhOJnTXythEi8=
=pv/G
-----END PGP SIGNATURE-----
"Balaram Barange" <balaram...@persistent.co.in> wrote in message
news:%23jMIEHA...@TK2MSFTNGP12.phx.gbl...
> Set oShell = WScript.CreateObject("WSCript.shell")
> ^ it giving error here
>
Hi,
Remove the WScript. part, use this instead:
Set oShell = CreateObject("WScript.Shell")
As your MSI custom action vbscript is not hosted by wscript.exe
/cscript.exe, you cannot use WSH's builtin WScript object
(WScript.Sleep, WScript.Quit, WScript.CreateObject etc.)
ie
Set oShell = CreateObject("WScript.Shell")
Jon
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:uvrbDpBb...@TK2MSFTNGP10.phx.gbl...
"Jon" <Email_...@SomewhereOrOther.com> wrote in message
news:%23iWfk$BbFHA...@TK2MSFTNGP14.phx.gbl...
Which dll file need to be added to use
WScript.CreateObject("WScript.Network")
pls guide.
*** Sent via Developersdex http://www.developersdex.com ***
> Which dll file need to be added to use
> WScript.CreateObject("WScript.Network")
> pls guide.
The WshNetwork object comes with WSH (Windows Script Host). It's probably in
vbscript.dll. However, it should be available on any client with Windows
2000 or above, and any other 32-bit client (Window 95/98/ME or NT) with
DSClient installed. If any client does not have WshNetwork, then WSH needs
to be installed.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab web site - http://www.rlmueller.net
--
The only creatable object in vbscript.dll is "VBScript.RegExp" (VBScript
code can use the syntactic sugar ...new RegExp or a full
CreateObject("VBScript.RegExp").
Wsh objects (with "WScript.*" progids) are implemented in wshom.ocx.
Scrrun.dll implements the "Scripting.*" progids like the FSO and Dictionary
objects.
Scrobj.dll implements the "Scriptlet.Typelib" progid.
--
Michael Harris
Microsoft MVP Scripting
If the above line is failing, try it like this:
CreateObject("WScript.Network")
/Al