Results 1 to 4 of 4

Thread: How to register a DLL automatically ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    12

    Question


    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.

  2. #2
    Guest
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    12
    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 ?






  4. #4
    Guest
    Take a look at this thread which I showed how to do it through VB or using Shell.

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