-
Hi,
Here's my delima. In order to use a new feature on my company's web page, the user's computer needs version 2 of a third-party OCX. Both version 1 and version 2 of this OCX have the same ClassId and Object name and most of the user's computers have version 1 installed.
Prior to version 2 I could simply try to create the object through VbScript. If an error was returned, the user was given the option to download the object. Now I need to be able to also check the version.
Thanks,
Al.
-
Include the version in Progid.
for example
"macrosoft.smartobject.2"
If you were able to create and there is no error then version 2 Exists else you have to ask them to download.
-
I wish it were that easy
Hi,
Thanks for the reply, but:
Both versions register themselves as Wfica.WficaCtl.1. The only way I can tell which version is installed is to manually look under the ClassID in Clsid, subkey "Version". It's value is either 1.0 for the old or 2.0 for the correct one.
I'm hoping there's a way to query this subkey value through ASP.
Thanks,
Al.
-
Does the control has any version returning function ?
If not...
Sometimes a control may have a property about
which returns a string.
Say for example
Megasoft (c) version 1.0 1999
.you can just create an object and use this
property to parse and find the version