>>>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).