Solved

Best Practices for VB Projects that refer to VB Controls in them

Posted on 2006-07-07
5
251 Views
Last Modified: 2013-12-25
Hello all

I have inherited a couple of VB apps, that have up to ten home-grown VB controls they use.  

The previous developer had all of these compiled in a c:\Program Files\My Company\bin folder, and all of the vbp projects referenced them there.  
Then the Install package wrote them to %system% during the install.

Q:  What's the easiest way to manage/deploy VB apps with multiple VB controls in them?

TIA
-Jim
0
Comment
Question by:Jim Horn
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
bdbrown earned 450 total points
ID: 17060250
Jim,

Here are a few utilities for packaging and deployment which I use;

Dependancy Walker; http://www.dependencywalker.com/

ISTool; http://www.istool.org/default.aspx/

Inno Setup; http://www.jrsoftware.org/isinfo.php

Hope this helps

bdb
0
 
LVL 4

Assisted Solution

by:jomacinc
jomacinc earned 50 total points
ID: 17073092
You should install the components into the system directory on the development machine and reference them there.
That way the app should not have trouble finding them on any system they are installed to.
0
 
LVL 65

Author Comment

by:Jim Horn
ID: 17074744
Thanks for the comments guys.  

>You should install the components into the system directory on the development machine and reference them there.
This is the way I normally develop.  

The setup I inherited though had all custom ocx's in c:\Program Files\{Company Name}\bin folder, and all of the project files referenced the ocx's in this location.
I believed when the app was deployed using M$ Package & Deployment Wizard, the script wrote-registered them to the correct %system% folder.

So..  on the development pc you would have the ocx's live in two separate places, and possible (definatly) have registry conflicts.
0
 
LVL 4

Expert Comment

by:jomacinc
ID: 17077341
Is there a reason why the OCX's need to be in c:\Program Files\{Company Name}\bin folder on the development machine?
If not, they should be moved to the system folder and not stored in two places.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA Excel: fill / replace values based on a config sheet. 5 61
Replace Formatted Numbers with text 9 61
Copy a row 12 59
Passing a Text Box name to a Sub 6 79
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now