Solved

Installing a shared OCX

Posted on 2013-01-15
4
340 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 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