Solved

Regsvr32.exe Alternative

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 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