Need help with installing ocx files during deployment
Hi,
I did a project using databases and MS mail api. It works fine on my computer, But if I try to install into someone else's computer it gives a error. Looks like MSMAPI32.OCX and MSADODB.OCX are missing in their comp. I am using InnoSetup and how can I install these OCX files when the they run the setup?
Re: Need help with installing ocx files during deployment
You have to include them in your setup package to be installed and registered. How did you create you script by hand? Take a look at Inno Setup Third Party Tools in my signature. Perhaps you will find something that can help you generate a complete script with all dependencies and will register them also.
Re: Need help with installing ocx files during deployment
Thank, I will look into it. I used Innosetup to package the files to a setup files. I am a noob, so I am not very familiar with packaging.
Cheers!
Originally Posted by randem
You have to include them in your setup package to be installed and registered. How did you create you script by hand? Take a look at Inno Setup Third Party Tools in my signature. Perhaps you will find something that can help you generate a complete script with all dependencies and will register them also.
Re: Need help with installing ocx files during deployment
Thanks a lot. I will try to use that. It looks pretty easy. Meanwhile I have another question. if I copy those ocx files into the system32 folder, the program starts up ok. The MAPI works and sends mail. But if I try to connect to a access database it says "ADODC1 - Provider cannot be found, it may not be properly installed" and then gives a error "Run time error 3706, application-defined or object-defined error" and closes the program. Why does it happen? What should I do?
Cheers!
Kumar
Originally Posted by randem
Try Using ********** to Create your Inno Setup Script. You can avoid problems like this in the future.
Re: Need help with installing ocx files during deployment
But those are the two files which my project says missing when I install in a different comp. But copying the files in solves the problem of starting the program but only it doesnt run. I dont know what else i am missing. How do I find that out? Probably I shuld post a copy of my work.
Re: Need help with installing ocx files during deployment
just copying the DLLs or OCXs cannot make them work. you need to install them properly in order to get work done.
to register the OCXs, goto
Start -> Run.
in the Run dialog box type
RegSvr32.exe path and name of the OCX
when you create a setup package using Inno, it doesnot create scripts which actually installs the VB runtime packages and other Active X components required by your project. for this you need 3rd party Script editors for Inno. please take a look here for such editors.
Re: Need help with installing ocx files during deployment
THanks, I tried registering the ocx as you said but still I get the same problem. "ADODC1 - Provider cannot be found, it may not be properly installed" and then gives a error "Run time error 3706, application-defined or object-defined error" and closes the program. I dont know what is wrong.
just copying the DLLs or OCXs cannot make them work. you need to install them properly in order to get work done.
to register the OCXs, goto
Start -> Run.
in the Run dialog box type
RegSvr32.exe path and name of the OCX
when you create a setup package using Inno, it doesnot create scripts which actually installs the VB runtime packages and other Active X components required by your project. for this you need 3rd party Script editors for Inno. please take a look here for such editors.
; Visual Basic For Applications - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; Microsoft DAO 3.51 Object Library - (DAO350.DLL)
; Microsoft ActiveX Data Objects 2.6 Library - (msado26.tlb)
; ODBC Driver & Data Source Name Functions - (ODBCTOOL.DLL)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft ADO Data Control 6.0 (SP6) (OLEDB) - (MSADODC.OCX)
; Microsoft MAPI Controls 6.0 - (MSMAPI32.OCX)
Re: Need help with installing ocx files during deployment
I tried installing it on a friends computer and ran it. Then it popped an error message saying that msadodb.ocx and msmapi32.ocx files are not installed or not registered properly.