Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sergey's code to verify ActiveX presence and registratio
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
01385712
Message ID:
01386077
Vues:
51
Sergey

Then I think I've made a mess of my installation setup because I did not realize this.

For my older version, I installed activeX controls (like DBI's ctTree and RichTx32.ocx) into System32 under Windows. These were registered by the install program

When I came out with a new version, I changed the application folder name and got the install program to put the activeX controls into the same folder as the application. These were also registered by the install program.

I had assumed that the registry would know which controls to use for each application.

But if there is only one entry in the registry, then I guess the second install did not actually register the controls, as they were already registered!

This issue has arisen because a user has just uninstalled the older version, and the new version now gives an OLE error.

Note: I thought it would be a good idea to avoid placing the controls into System.


So what are my options? Should I create a new install program that puts everything into System?
Or should I write a registration file which the user can run if they have OLE problems. This file will I guess contain:

regsvr32.exe "c:\ABC8\Richtx32.ocx"
regsvr32.exe "c:\ABC8\ctTree.ocx"


Any advice?

Cyril



>Cyril,
>
>The 'RichText.RichTextCtrl' is a ProgID for RTF control. It's also Version independent ProgID because it doesn't include the third part (version) and points to the latest version of RTF control. If you have multiple version of an ActiveX/COM server installed, than you will have multiple entries in the registry under HKEY_CLASSES_ROOT in the form < Program >.< Component >.< Version >. They point to the CLSID of the component. You may have multiple entries that all points to the same CLSID.
>
>Which version VFP will use, depends on ProgID stored in the form for the control.
>BTW, I don't think you can have multiple versions of RTF control in the registry on a PC because all I've seen are version 1.
>
>>Can I get a list of all registrations of RichTx32.ocx in the registry?
>>
>>I found Sergey's code here: http://www.berezniker.com/content/pages/visual-foxpro/verify-activex-presence-and-registration
>>
>>The line below returns .T.
>>
>>
? VerifyActiveX("RichText.RichTextCtrl")
>>
>>How could I use this to find out all the registrations that refer to the file RichTx32.ocx?
>>
>>If there is more than one, which one will a VFP form use?
>>
>>
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform