Solved

Regsvr32.exe Alternative

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
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…
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…

777 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