Solved

Distributing a VB program?

Posted on 2004-09-09
6
284 Views
Last Modified: 2013-11-14
Hi all,
I'm rather new to visual basic, and am experimenting a bit.  I am using a few activex controls (like flexgrid and common controls), and one activex from another company as an interface to a DB.

When I compile this program and am ready to make a distribution file, what all do I need to include with the distribution to make it work?  Do I need all of the .ocx's?  Do I need any special .DLL's aside from the ones that were given to me from the other company for the DB interface?  And what will I need to do to "register" the controls to make them useable?

I am either going to use installshield or another install creater utility to build the distribution files

Thanks in advance!
0
Comment
Question by:navigator010897
6 Comments
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
you will need all ocx and dll files you use. Package and deployment wizard will recognize all files needed. I am not sure but I think that API dlls should be added manualy, as well as all aditional files you want.

to register activex component use

regrsvr32 ActiexComponentPath
0
 
LVL 19

Accepted Solution

by:
Shauli earned 500 total points
Comment Utility
Run the "Package & Deployment" tool, provided with VB. It will create an installation setup for you and include the ocxs and dlls you need. If eventually, you choose to create the setup with another tool, such as Innosetup (http://www.jrsoftware.org/isinfo.php) then you can use the SETUP.LST file that was created by the P&D to have a list of the files that should be included in the package. Innosetup also have a support that can guid you through which files should be included.

S
0
 
LVL 5

Expert Comment

by:KarcOrigin
Comment Utility
Use the "Package & Deployment" tool which comes with Visual Studio 6. Follow the wizard and add the 3rd party OCX references and external Dll references when it comes to "Included files" dialog box and proceed with it. Generally this dialog box preselect all the ocx/dll for you but if anything is missing then better add it here (Like .ini files, or bitmaps, or any other needed files).

Cheers!
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
Also you can open your project file  (xxx.vbp) using notepad and include all ocx and dll that shows on the file
0
 
LVL 5

Expert Comment

by:brianb99999
Comment Utility
Since you are pretty new I would start using INNO and advise against using the package and deployment wizard (it has a lot of bugs, especially when installing on XP).
I would use INNO, its free and there are good walkthroughs in the FAQ section of their site that explain what you need to do to distribute a Visual Basic APP.
The site is www.jrsoftware.org/isinfo.php

Brian.
0
 
LVL 1

Author Comment

by:navigator010897
Comment Utility
Shauli had the best answer "earliest", as I happen to already use Inno for my C/C++ apps, and although I might not have used it in the future, his answer helped with using it now.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

743 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

19 Experts available now in Live!

Get 1:1 Help Now