Solved

Regsvr32.exe Alternative

Posted on 1998-12-17
2
1,178 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now