Solved

Install Vb.net with OCX on other computer

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…

762 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