Discussion Locked

Checking for/installing VB runtime files

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am distributing a small VB application on CD-ROM. Like many CD's today, the application autorun's when the CD is inserted. My problem comes when the CD is placed into a computer that doesn't have the VB run-time libraries (specifically msvbvm60.dll) installed.
I have seen many other autorun CD-ROM's that know whether or not the application's supporting files have been installed on the computer. If they are, then the program runs like normal. If they aren't, then the program exitsand launches Setup. I want (maybe need) to do the same for my application, how?
Including the code to check for the support files in the application is a Catch-22 situation, since the application won't run without the support files it's supposed to check for. The only other option I can think of is to put msvbvm60.dll onto the CD-ROM with the application, but this will only work if this DLL doesn't need to be registered with Windows. Does it?

5 replies

by limbo

Ben,

What you need is a media distribution tool. These pulls together all your run time libraries, and registers them for you.

Install Shield is the industry standard, but Visual Studios Package & Deployment Wizard does the job too.

If this is not your cup of Tea, then you can manually register any .DLL you want.

Copy the libraries onto hard drive and run from a batch file the following:

C:\WINDOWS\SYSTEM\regsvr32.exe C:\WINDOWS\SYSTEM\msvbvm60.dll

repeat this for all the .DLLs you need to distribute.

Using the switches for this wee program allows you to register and un-register .DLL's with no fuss.

George.

by ben

Oops, I forget to rate this one, and now I have a second answer. I tried the Package and Deployment Wizard, but it didn't have the flexibility I needed, so I got Install Shield. Thanks.

by sunilkk

You can write another program in C language or any language which can generate .EXEs.
You can include instructions to manually
register all required dlls and after that
call your application.

The process will go like this,
Autorun -> the C program -> your application
|
|
|
V
Here all dlls are registered and will call your application.

If you know some way to check whether the dlls are registered in the system, you can
use that instead of registering it.

Hope this will help

by ben

Thanks for answering, but I already got Install Shield and forget to rate his answer. Sorry.

This discussion is closed to new replies.