Solved

Install Vb.net with OCX on other computer

Posted on 2004-09-06
3
248 Views
Last Modified: 2011-04-14
Hello,

I have an vb.net App with an OCX in it. In my Release folder I have:

- AxInterop.DVDLib.dll
- DVDCleaner.exe
- Interop.DVDLib.dll
- DVDlib.ocx

What I need to copy on another computer so that the app run? I tried to install all files, result DVDCleaner.exe crash on start. Next I try to Install only exe and ocx, result is a crash on start. Do I need to register anything else as the ocx?
Do I need to make registry entries? I use InstallShield Developer 8.0

The .net Framework is the same on traget computer as the one I develop with, so this is not the problem. An TestApp without OCX runs. The OCX is wirtten in MFC 7.0 (C++). All needed files are on the computer (MFC).

Iam happy if someone can help me.

Ingo
0
Comment
Question by:Ocrana
3 Comments
 
LVL 4

Accepted Solution

by:
Javert93 earned 250 total points
ID: 12010511
All OCX's (and COM dll servers) need to be registered on the target machine using RegSvr32.exe:

    regsvr32.exe <OCX filename>

This registers the type library in the registry, and create entries for the COM objects themselves. InstallShield should have a property for the dll that indicates whether or not it is self-registering COM server (perhaps something called "selfRegister", or something like that). Bottom line is, you have to run the aforementioned command line to use the OCX. If InstallShield is not performing this task for you, then you will need to check the documentation to see how to enable it.
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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 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

15 Experts available now in Live!

Get 1:1 Help Now