Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Script Host
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00473364
Message ID:
00473877
Views:
22
>>>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.
>>>
>>On the ms web site there are 2 versions, one for W2K and one for other os. I support all Windows os with my program. I plan to include both on my installation CD and install the correct one as necessary. Do you know of a way (inside a run-time vfp6 program) to determine which os the user has?
>
>I haven't used OS() under Win2K, but that should do it.

It returns "Windows 5.00" under Win2K. Any other Windows version returns a value < 5.00 (ME returns 4.90).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform