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
Solved

Installing a shared OCX

Posted on 2013-01-15
4
344 Views
Last Modified: 2013-01-16
My application consists of two executables. Both use the Flex Grid object. Therefore, MSFLXGRID.OCX needs to be contained in the installer.

The first exe generates files that are used by the second exe. For that reason, it is convenient to install both in the same folder.

Question: Is it necessary to install that ocx with both executables?

I would think that if the first installs it, the second doesn't have to. But I'm not sure about this.
0
Comment
Question by:NormaPosy
4 Comments
 
LVL 9

Assisted Solution

by:shorvath
shorvath earned 166 total points
ID: 38782181
You should always install all ocx's, dll's and other dependency files when installing any VB application.  The installer will not overwrite the file if it already exists on the system, and will prompt the user if the file is newer than the current one on the system.
0
 
LVL 18

Accepted Solution

by:
vasto earned 168 total points
ID: 38782613
Why do you need 2 setups then. You can go with one. When an OCX is installed it will be registered and all programs will use the latest registered version no matter in which folder it is installed. So if you are sure that both EXEs will be installed you can install the OCX with the first one.
0
 
LVL 45

Assisted Solution

by:aikimark
aikimark earned 166 total points
ID: 38783242
* Once the OCXs are installed, you do not NEED to do a second install.  They CAN be shared.
* shorvath is correct to assert that installations should be considered stand-alone items and all necessary OCXs should be included.
* vasto is also correct to assert that you can include multiple executables within an install.
0
 

Author Closing Comment

by:NormaPosy
ID: 38783984
Thank you all very much.
Your help is really appreciated.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

829 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