Solved

Regsvr32.exe Alternative

Posted on 1998-12-17
2
1,200 Views
Last Modified: 2013-11-14
I've created a VB application and I need to Register some ocx's and dll's. I can't use the VB Setup creator so I've created my own. I want to be able to register these files without Regsvr32.exe or somehow get rid of the messages that popup when each file is registered. How can this be done?
0
Comment
Question by:WDB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1450907
Create the following declares per DLL/OCX you want to register. Call all the register functions of each dll when you want to register the dll's. Similar for unregister.

Private Declare Sub DllRegisterServer_AMUITLIB Lib "d:\temp\amuitlib.dll" Alias "DllRegisterServer" ()
Private Declare Sub DllUnregisterServer_AMUITLIB Lib "d:\temp\amuitlib.dll" Alias "DllUnregisterServer" ()

Private Sub Form_Load()
    DllRegisterServer_AMUITLIB
    DllUnregisterServer_AMUITLIB
End Sub

BTW: Buy InstallShield if you can afford it.
0
 
LVL 2

Expert Comment

by:cantrell
ID: 1450908
Or you can simply use the -s switch with regsvr32.exe and that will make it silent so it won't display anything.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question