|
-
Mar 28th, 2001, 04:10 PM
#1
Thread Starter
Hyperactive Member
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.
A computer is a tool, not a toy.
-
Mar 28th, 2001, 05:41 PM
#2
Addicted Member
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.
-
Mar 28th, 2001, 09:06 PM
#3
Thread Starter
Hyperactive Member
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.
A computer is a tool, not a toy.
-
Mar 29th, 2001, 05:50 PM
#4
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|