Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH not installed on Win95 and WinNT
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00392337
Message ID:
00392346
Views:
11
>I'm making extensive use of WSH for drive mappings and desktop shortcuts in my application framework. After releasing an app, I find out WSH is not installed on 95 and NT. Any suggestions on how I can detect if it is installed and if not, possibly install it during setup or something?
>
>Thanx,
Charlie,

Right, with 95 and NT the WSH is not available by default. In Win98, 1.0 is available, but 2.0 needs to be downloaded if you're using features new in that version. If Option Pack 4 is installed with NT, 1.0 is available, however. Under Win2K, 2.0 is available by default.

You could check for the presence of WScript.exe or CScript.exe. The version number returned by will be greater than or equal to 5.0. You could also check the registry for the VBScript.RegExp object like this:
* Using the registry.cvx from the FFC
SET CLASSLIB TO Registry.vcx
oReg = CREATEOBJECT('Registry')
? oReg.IsKey("VBScript.RegExp")
This object was introduced in WSH 2.0, so checking for the existence of this key, should tell you whether or not to install the latest version.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform