Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Script Host
Message
 
To
07/02/2001 07:21:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00473364
Message ID:
00473395
Views:
18
>Is there a way of including WSH in a VFP project OR can anyone tell me what files are in WSH. Basically I need to distribute an EXE that uses WSH and I need to ensure that it has WSH available with minimal involvement from me.
>
>Thanks
Kev,

Let me cut right to the chase. The easiest way to determine if the WSH is installed is to check the registry under HKEY_CLASSES_ROOT for VBScript.RegExp. If this entry doesn't exist, it tells you two things. That either the WSH isn't installed, or if it is, it is not the most recent version. This object, is new to WSH 2.0.

What I do to install the latest version if it isn't there is to run the installation program from a post-setup executable in silent mode.

FWIW, I don't believe that you include it as part of a project, but you can include it and execute the installation program in your setup program.
George

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

Click here to load this message in the networking platform