Link to home
Start Free TrialLog in
Avatar of joe_kosh
joe_kosh

asked on

Visual Basic Runtime Files

I have created a visual basic project and burned it to a cd.  I want to be able to autoplay the .exe, but need ensure the client computer has the vb runtime files.  Is there anyway to check for the vb6 runtime files and if not present, to copy them?
Avatar of TomLaw1999
TomLaw1999
Flag of United Kingdom of Great Britain and Northern Ireland image

The visual basic runtimes are always transferred providing that you use a package and deployment program to create an install program. There are several different one's available, depending on your version of vb you may find that you have one already.
ASKER CERTIFIED SOLUTION
Avatar of TomLaw1999
TomLaw1999
Flag of United Kingdom of Great Britain and Northern Ireland image

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
if all you're worried about is that the autoplay program will run ok, just copy the runtime files in the directory with your autoplay program.
Avatar of Ryan Chong
Hi joe_kosh,

Are the autorun exe is compiled with VB?

To copy the runtime file from system, how about this:

Create a .bat file

@echo off
copy MSVBVM60.DLL C:\Winnt\system32\MSVBVM60.DLL
regsvr32 C:\Winnt\system32\MSVBVM60.DLL

(C:\Winnt\system32 should be your System folder)
Win9x normally is C:\windows\system

And to create an Autorun CD:

In your CD, create an INF file named "AUTORUN",

put the code like this:

[autorun]
open=setup.exe
icon=setup.exe

setup.exe is the Setup file for your program.

A VB program/ application will always check its directory for the Runtime Files before go to the System folder. So, maybe just have a copy of VB RuntimeFile in the CD , along with the setup.exe (may create in VB), so that it will run properly.

regards.
Another alternative, though not free is the fusion product from http://www.bit-arts.com/fusion which will encapsulate the required runtime files and dynamically extract and register them when required as the exe is launched. This is ideal for these situations and whilst I have never used it myself it has proved useful for others in exactly the same situations.
Hi joe_kosh,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept TomLaw1999's comment(s) as an answer.

joe_kosh, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Avatar of modulo
modulo

Finalized as proposed

modulo

Community Support Moderator
Experts Exchange