Distributing VB6 applications

Posted on 2002-07-01
Last Modified: 2010-05-02
Hi, I need to know what the best way to distribute VB programs is.  For instance, if I make a simple .exe, what is the best way to ensure it will run on all Windows systems?

I've tried to send an .exe to friends, and usually get some .dll error or something.

I'd like it to as small as possible (to send over internet).


Question by:samsonite1023
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

Expert Comment

ID: 7123293

Do you have the package and deployment wizard? If so you can use this to bundle up your project files and .exe file. This will then create a setup package that wil alow the target users to install your program. I may be wrong but, this is probably the easiest way without spending any money.

If you are serious about developing then I would reccommend Bit Arts Fusion, this is a software packager that you can download a free 30 day trial of, which is excellent the link is
a thing to remember when using the trial version is that the file will only work with the name given by the program following compilation.


LVL 28

Expert Comment

ID: 7123418
If you want to keep your file small to send over the net you could just send the .exe file along with a link to the vb runtime files on Microsoft's site.;EN-US;q235420

LVL 28

Expert Comment

ID: 7123421
The link is for vb6.Also,if you use any controls that are not contained in the download or on the users machine ,then you will need to distribute them as well.
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Accepted Solution

MelissaEvans earned 50 total points
ID: 7123422
Here's a free installer.  I haven't played with it, it was recommended by a friend - but if you don't have access to the PDW it might be of interest to you.  =)

Author Comment

ID: 7123778
These suggestions are great, however I do not need installation wizards and such (yet).  I'd just like the person to be able to run the .exe without getting dll errors.

Perhaps I should use a "Binder" or "Joiner" ?  

Thank you for your comments so far

LVL 44

Expert Comment

ID: 7124372
samsonite1023:  "I do not need installation wizards and such (yet). " is ABSOLUTELY WRONG...Yes you do, because the purpose of the Installation is so that a PC which DOES NOT have VB installed on it, can run your EXE without getting the DLL errors.  The installation is done to add those DLLs to the other PC, so that the VB program will run.

Arthur Wood

Author Comment

ID: 7125122
Arthur, I just need something that will put the .dll's in the system folder and register them.  That does NOT require a 5 or 6 step installation program.

You are absolutely wrong.


Expert Comment

ID: 7125642

This is what VB exe files require:

Msvbvm60.dll (or Msvbvm50.dll) in the system folder (it's advisible not to copy it there).
This is the runtime file needed for all exe files to work.  If it is not found in the system folder, it must at least be in the SAME folder as that of your vb exe's folder.

The same goes for any ocx file(s) that you've used in your vb exe.

Thus, all you need (as in, the safest method) to do is to:

- Zip up all the ocx files, vb runtime file that you've used
- Create a self-extracting exe file to unzip all it's contents into the SAME folder.

There is no need to register them if they're in the same folder.

Your vb exe should work fine from there without any errors unless:

You've used any 3rd party ocx/dll files that's not found on the other person's PC.

That's it!

glass cookie : )

Author Comment

ID: 7134336
Thanks melissa

Featured Post

Independent Software Vendors: 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

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…
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…
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…

707 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