Solved

Install Vb.net with OCX on other computer

Posted on 2004-09-06
3
247 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

11 Experts available now in Live!

Get 1:1 Help Now