Solved

Install Vb.net with OCX on other computer

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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…

751 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