Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Most efficient way to find Run Time Lib.
Message
De
23/02/2001 00:00:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00478183
Message ID:
00478698
Vues:
26
>>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...
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform