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:
If ReferenceExists("MSOWC.dll") = False Then
msgbox "False"
Call RegisterRef("MSOWC.dll") ' Register reference
Else
msgbox "True"
End If
Is there a way of using Regsvr32.exe in V6B code?
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.
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?
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.