Solved

Distributing a VB program?

Posted on 2004-09-09
6
304 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
[X]
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
6 Comments
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12017346
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
ID: 12017410
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
ID: 12018025
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 26

Expert Comment

by:EDDYKT
ID: 12018467
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
ID: 12022275
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
ID: 12437482
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you don't know how to downgrade, my instructions below should be 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…
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…
Suggested Courses
Course of the Month7 days, 5 hours left to enroll

623 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