What API to use to Register an ocx?

I am developing an VB5 application to deploy on a LAN.  We have been in the VB3 world - until now.  I want the app to register appropriate .ocx files on local users' machines without their having to run a "setup" program.  I assume this can be handled with an API call within my application.  If so, which one(s)?  
Further, is there a way to determine if the user has already done this registry work and can skip the process on subsequent runs of the program?   Another API call?
nelchrAsked:
Who is Participating?
 
chabaudCommented:
You could call the DllRegisterServer() function of each .OCX needed instead of run regsvr32.exe program.

Use the Declare statement for each OCX which are in fact DLL.
0
 
Jason_GCommented:
Hi nelchr,
If an ActiveX component is an in-process component, then you must use a utility such as Regsvr32.exe to register it.

I hope this helps.

Sincerely,
Jason

Jason Gorman (jason_gorman@scholars.com)
Learning Advisor, scholars.com
Microsoft Authorized Technical Education Center
Novell Authorized Online Training Provider
http://scholars.com
0
 
nelchrAuthor Commented:
OK ... kind of.  
I am not clear about the registry of components on end user systems.  My application runs fine on my computer.  When I put my application (SA1) on a shared drive for other people they can't run it (but mine still does).  I don't want to have everyone run an "install" program every time we put another app or upgrade out.  I am looking for automating the component registration process if it must be done... OR ... is it possible to move .ocx components, register them, and reference them from a shared drive during application development?  

Or do I make yet another shared application (sa2) that monitors the local system for existence of necessary components.  E.g. I run SA1. It shells out to SA2 to make sure SA1's components exist on the local system and, if not, registers them.

I feel I am not seeing the big picture clearly.





0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
khaledcCommented:
nelchr,
First you have to know what dll are needed by your ocx, then use regsvr32.exe to register.
If you need to know more, I am afraid the question is worth more than 50 points.
Regards
0
 
watyCommented:
You have to install all the DLL needed by VB5 on each computer.
Once you have done that, you can install the program written in VB 5 on your lan, and each workstation could run it.

To create installation disks, there is the "Wise" application.
This program inspect your application and create add in one file all the needed file and register all the OCX, OLE 2 server...


0
 
chabaudCommented:
You could call the DllRegisterServer() function of each .OCX needed instead of run regsvr32.exe program.

Use the Declare statement for each OCX which are in fact DLL.
0
 
nelchrAuthor Commented:
chabaud,
Your comment is more what I am after here.  
Thanks for the help.  I think you need to respond again with an answer to get points.
                                  nelchr

0
 
nelchrAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.