Link to home
Start Free TrialLog in
Avatar of jrb2
jrb2

asked on

VB6 distribution files

I wrote a test application, made an EXE file then ran it
on another computer to test.  It did not run at first because the computer did not have a file called MSVBVM60.DLL
so I found that file on the machine that I originally developed the test app on and copied to the same directory I
found it in on the other machine c:\windows\system\.  Question is...is that file normally resident on all PC's or does that DLL file have to be distributed w/ the app.  If it
does, does have to always reside in the C:\windows\system directory or can it just reside w/ the app's EXE file as on
a CD.
Avatar of jjmartin
jjmartin

That file is not normally resident on all PC's.  In fact, I wouldn't count on any dll being on a users PC.  It is best to include them in the setup routine to avoid problems.

Unless you are developing an app that does nothing more than display a window, there are a a bunch of dll's that have to go along with the application.

When distributing a program, you need to make a setup program (VB's application setup wizard does this easily), so all the dll's are registered on the computer.  If you make changes to a program but don't add any new controls to any of the forms, then you can just redistribute a new exe without having to run a new setup program.
The VB runtime library is only needed by applications made with VB...
It must reside in the Windows/system directory, because if you have a lot of VB applications on a machine, they will share the same DLL, if you install it on the program's directory you have to make a copy of the DLL with each program (whic is obviously a waste of disk space).
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jrb2

ASKER

In the above comments it mentions the application wizard for
creating a setup routine.  Would that setup routine copy the
MSVBVN60.DLL I inquired about to someones \windows\system\
directory automatically.
The application setup wizard examines your project, and will include any dll's needed to run the appliction.  During setup, it copys these files to the appropriate directory (either the appliction directory or the system directory), and registers them on the PC so your application can find them.  

The application setup wizard does in fact include all the DLLs that your application uses but you do have the ablility to edit the files you want to include. If you are distributing the software make 2 setup files, one with, and one without the VB DLL files. Another option is to supply a readme.txt file which has the URL for the free VB runtime files.