Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry File Search
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00196580
Message ID:
00196733
Vues:
40
>>I was wondering if it is best to check the windows registry to find if an application is installed on a work station? And if so, what command or control would I use to find a file name 'AcroRd32.exe' in the registry using code only. I've looked at serveral controls in the files section, but could not find one to do what I want it to do. I would appreciate any help.
>
>THe best way to do this, IMHO, is to find out where the program registers itself in the registry and look there specifically. If the program associates any files with itself, you can check the file's association by looking it up in HKEY_CLASSES_ROOT.
>
>For example, to chack if Acrobat Reader is installed on a machine, you could check if the file type pdf is registered and holds the correct content type.

Hi Erik,

That's one way to do it. Another, and a bit simpler to implement I believe, would be to use FindExecutable() in Shell32. From the results I've seen, it does all the registry access for you without your having to worry about keys, etc.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform