|
-
Apr 19th, 2001, 05:43 AM
#1
Thread Starter
Member
Is it really necessary, I want to make an AutoRun CD-Rom, but the problem is that if the client machine doesn’t have VB Run-time files already installed the program will fail to start.
If VB Runtime files are necessary, and there is no chance to ignore it, how can I identify if the client machine does or doesn’t have VB Runtime already installed (say using BAT files).
-
Apr 19th, 2001, 06:05 AM
#2
Lively Member
Unfortunatly you have to install the runtime files, but there is a way to do this. You can find an .exe file on download.com or cnet that installs just the vb6 runtime files. I think it is called vb6runtime.exe or something. Add this to your installation cd, and change you autorun file so that it runs this first.
Hope it helps.
Today is yesterday's tomorrow
-
Apr 19th, 2001, 06:09 AM
#3
Thread Starter
Member
Thanks FirstKnight for your reply..
But the problem is that, when i install the runtime files it would ask the user to restart the PC..
secondly, if i set the autorun file is the vb6runtime.exe (which installs run-time files) how can i run my program ?
-
Apr 19th, 2001, 03:16 PM
#4
I you could easily make a C++ program to do this, then use ShellExecute to open your VB exe.
-
Apr 20th, 2001, 08:11 AM
#5
Thread Starter
Member
good idea megatron,
how will i identify from C++ wither vb-runtime files are already installed or not ?
-
Apr 21st, 2001, 01:04 PM
#6
-
Apr 21st, 2001, 01:51 PM
#7
You can also use the FindFirstFile (API equiv. of Dir) function to search for the file.
-
Apr 22nd, 2001, 05:54 AM
#8
Thread Starter
Member
Thanks Yonata, Megatron..
As a small software business owner, VB has forced many software businesses like me to work on it, in most cases VB reduce big amount programming time with alsmo same quality saving lot of money
-
Apr 30th, 2001, 01:34 AM
#9
I came accross the same problem. I got around it
by putting the msvbvm60.dll on the cd in the root path.
I found out that when a dll is not located in
the default paths(system32, windows, or system etc.)
the system looks for it in the same path as the
calling exe is located. If it's not found it
gives the error you received.
You can test this by putting the dll on the cd
(in the root path with the exe) and then
rename the dll on your system to something else
(after you close VB).
Then run the cd. It will use
the dll off of the cd by default.
You do not need to register the dll either.
Your autorun cd will run and when your done
rename the dll on your system back and then you
can open VB again.
BTW - if a computer already has the dll when your cd runs
it will not create any problems because your not
registering the dll. When they take your cd out
there system will function as it was before, not
even knowing about your dll.
-
Apr 30th, 2001, 01:44 AM
#10
PowerPoster
It's generally the other way round. The file is first searched in the app directory, then the systems directory, then the windows directory and then in the directories specified in the Path environment variable.
Last edited by amitabh; Apr 30th, 2001 at 01:51 AM.
-
Apr 30th, 2001, 12:52 PM
#11
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|