>>Hi -
>>
>>What would be the most efficient way of identifying whether a workstation has VFP6 run time lib installed, regardless as to that workstations operating system?
>
>You need to find out if the runtime libraries have been installed in the Windows System folder. I do not find these libraries registered in the registry.
>
>There is an API in the API section here to determine what the WinSys folder is. Do a search on GetSystem
A more reliable means is to check for the existance of
HKEY_CLASSES_ROOT\VisualFoxPro.Runtime.6\CLSID
, getting the default value, which would be the CLSID for the runtime, then locating
HKEY_CLASSES_ROOT\CLSID found in first step\InProcServer32
and getting it's default value - this will be the actual location the OS expects to find the VFP runtime DLL, which might not be in the System directory, especially under Win2K or WTS, where the DLL may be installed side-by-side, or where the OS doesn't allow you to directly copy files into its system folders. Since it's going to really check the registry in the process of starting the .EXE, may as well look where it will.
BTW, use VisualFoxPro.RunTime.6 - if you've got the beta installed, VisualFoxPro.RunTime.7 will glom the VersionIndependentProgID VisualFoxPro.RunTime when it installs, so don't be surprised...