Results 1 to 4 of 4

Thread: Check if a OCX or DLL is registered.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    79

    Question Check if a OCX or DLL is registered.

    I've build a addin that needs two references in order to run:
    MSOWC.dll & Msflxgrd.ocx

    These files sometimes aren't present on some of the PC's that will use my addin, so how do I check that they are registered?

    Something like:

    VB Code:
    1. If ReferenceExists("MSOWC.dll") = False Then
    2.     msgbox "False"
    3.     Call RegisterRef("MSOWC.dll") ' Register reference
    4. Else
    5.     msgbox "True"
    6. End If

    Is there a way of using Regsvr32.exe in V6B code?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Check if a OCX or DLL is registered.

    Package your addin in an installation and setup package that includes both of these files.

    That will both load and register them for you.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    79

    Re: Check if a OCX or DLL is registered.

    I've built my comm addin in VB6, after compiling it the end result is a DLL file.
    (Made for Outlook 2003).
    How do I create a "installation and setup package" for a DLL COMM add-in?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Check if a OCX or DLL is registered.

    It doesn't really matter what the product is, you can use an installer to install anything.

    Use either the Package and Deployment Wizard or Inno.

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