-
This may be a commonly known answer, but I am stuck with
the following problem.
How can I automate the registration of a DLL used by a VB program ? Otherwise the user sees an error which says something like - "can't create an ActiveX object".
Thanks.
-
Make a copy of RegSvr32.exe
include it in your zip/setup file, then use Shell and the proper command line parameters(the path of the dll) to register it,
you can also use a Batch(*.Bat) and RegSvr32 to register it.
-
Thanks for your suggestion.
I was initially thinking of using the 'shell' option. But I am not seeing this problem on all the PCs. So instead
I have included the 'COMContextMenuRegister.reg' file along
with the DLLs so that the user can run this program to get
the 'self register' in their RMB menu.
Do you have any experience using 'COMContextMenuRegister.reg' file ?
-
Take a look at this thread which I showed how to do it through VB or using Shell.