Solved

Installing a shared OCX

Posted on 2013-01-15
4
345 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

680 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