Solved

install application with ActiveX

Posted on 2000-03-30
5
249 Views
Last Modified: 2010-05-18
hi
I have written application that using activeX Control;
Now i need to make installation program ;
How can i install (and register)ActiveX on my Client Computer
i"m using delphi5 pro with basice InstallShield
all the best
Asi
0
Comment
Question by:asi
5 Comments
 
LVL 2

Expert Comment

by:florisb
ID: 2672372
I believe that ActiveX Contols have to be registered on client computers. For some components this will raise some licensing questions.

I can't really answer your question, I expect that a program like InstallShield will produce correct instaltion; also with ActiveX controls. Perhaps some settings (additional files & registering) are needed.

Good luck,
Floris.
0
 
LVL 15

Accepted Solution

by:
simonet earned 50 total points
ID: 2672815
florisb raised the topic about licensing. THis is one thing you have to deal with yourself. You know which controls you're using, so you know which ones you can and cannot distribute. I can't help you with that.

Now, regarding the deployment of ActiveX controls:

ActiveX controls come in files with the extension .OCX. They may (or may not) depend on other OCX and DLL files, and that information is included with the documentation of the OCX. If you don't have a clue what files an OCX depends on, you can use Resource Explorer 1.5 to find that out. You can download Resource Explorer from my site: http://www.bhnet.com.br/~simonet

Note that RE 1.5 will give information on ALL the files an OCX depends on, including those that belong to Windows. You have to filter that information out yourself.

Ok, now that you know what OCX files you have to deploy and their dependencies, you can deploy them. An OCX file must be registered. Most of today's DLLs also need to be registered. You can add the OCX file and their dependencies to a file group in InstallShield Express and force ISX to register them. Register them all if you will (no error or problem will arise if a DLL shouldn't have been registered).

If you want to manually register a file, you can use REGSVR32.EXE. For example:

regsvr32 -s html32.ocx

Borland also distributes a file, TREGSVR, which you can also deploy with your application, if you're using it to register files your app depends on. TREGSVR is in the Delphi5\Bin folder. It has the same function as regsvr32.

Let me know if I can be of further assistance.

Yours,

Alex


0
 

Expert Comment

by:Carpathia
ID: 2677134
To register an ActiveX library programatically, use the LoadLibrary API to load the OCX dll.

Then use the GetProcAddress API to find the address of the "DllRegisterServer" function in that dll.

Call DllRegisterServer to register your OCX.

This is exactly what regsvr32 does.

Hope this helps.

0
 

Author Comment

by:asi
ID: 2677306
hi

when i"m insert file to some Gorup (Install Sheild Express) and on that file i press , propery , i have check box "Allow Express to self-register this file ", does this register OCX in the registry etc ... ?

10x
Aso
0
 

Expert Comment

by:Carpathia
ID: 2677658
Yes. it will.

I only mentioned the programatical way to register ActiveX dll's because Its the nice way to do it if you have a plug in architecture. ie, you dont know what ActiveX controls the user will install alongside your app.

Regards

Carpathia
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help on project with Soap 10 63
Delphi application Soap connection 5 132
DBGrid or StringGrid ? 6 120
How to remove Recent Projects from Embarcadero C++ builder XE10. Berlin 2 78
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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