Solved

Regsvr32.exe Alternative

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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 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…

687 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