Results 1 to 4 of 4

Thread: Check the version of a registered object on the client

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    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.

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    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.
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  3. #3

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    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.

  4. #4
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    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
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width