07-24-2002, 03:37 AM
Iīve done a program for my father in VB6 and when I made the .exe and transfered it to my fathers computer it didnīt work even though I installed VBRun 4, 5, 6. How can I make it run on his computer, must I install VB6 on his computer to?
07-24-2002, 04:14 AM
You need to install the runtime files, plus any OCXs you used. The ideal way would be to create a setup file using an installation program like the Package and Deployment Wizard or Inno Setup (I use WISE Install). But for a quick and dirty install, try copying the files manually and register them using regsvr32.exe. You can find a list of the required runtime files in Tutors Corner. It's an old post so set the date selector to "beginning".
07-24-2002, 03:21 PM
Pretty stupid question I guess but how do I register the OCX using regsvr32.exe?
The OCX I need to copy is the ADODC.
07-24-2002, 03:25 PM
regsvr32 filename.ext, works for dll's and ocx's
07-25-2002, 02:02 AM
It didn't work, can I have a dummy explanation plz :D
07-25-2002, 02:17 AM
In that case just create a setup using the Package & Deployment Wizard and install this setup on the target machine.
07-28-2002, 09:47 AM
I used the wizard to make a setup. When it was done I got a report:
"You have included mdac_typ.exe in your installation package. If you will be installing this package on a win 95/98 system it will require DCOM98 to install properly."
Iīm about to install it on a win98 system. What is DCOM98? And what do I do if I donīt have it on that computer?
07-28-2002, 09:57 AM
You can get DCOM98 from www.microsoft.com/com and you will need to include it in your installation package and run it on install.
07-28-2002, 10:04 AM
The file is an exe. Canīt I just install it on the target computer? Do I really have to include it in my install?
07-28-2002, 10:08 AM
You could just install it, yeah. The reason I said include it in the install is so that it can be easily installed on machines that you do not have control of. Of course if this is not what you want then by all means just install it.
07-28-2002, 10:12 AM
Now It should only be for me to burn the packagefolder to a cd and install it on the target computer...or? I do not need to transfer the whole project map (with the .vbp and form files)?
07-28-2002, 10:29 AM
You only need the install package...
07-28-2002, 10:53 AM
Now I have installed DCOM98 and the package on the target computer wich worked just fine. When I start the program the mainmenu is shown just as it should but when I try to do something else I get this error message:
Run-time error '430'
Class does not support automation or does not support expected interface.
What is wrong the program works just fine on computers where vb 6 is installed
07-28-2002, 11:31 AM
It sounds to me like your DLLs or OCXs never got registered. Try
manually regsvr32'ing them.
07-28-2002, 12:56 PM
Either that or you missed a dependancy. Check the components and references lists to make sure that you have them all.
07-28-2002, 09:36 PM
Are you sure the version of mdac_typ.exe you included is the
same or higher than the version of the data access components
you referenced in your project?