Add a reference to Visual FoxPro dll
Hey guys. My program uses the visual foxpro driver to open dBase files, but I can't seem to get it to add a reference to this dll so that when it is installed on someones computer it works. I have even tried to manualy browse to the dll and include it but VS says I can't.
It doesn't show up in the COM reference list at all.
My program wont work without the fox pro driver, so how do I include it as a prerequesite?
Thanks!
Re: Add a reference to Visual FoxPro dll
You shouldn't need to reference anything. You should just be specifying that driver in your connection string. As for requiring it as a prerequisite for your app, you would either install it as part of your Setup or else add a Launch Condition to your Setup that looks for a file, registry entry or the like that identifies that driver as being installed.
Re: Add a reference to Visual FoxPro dll
You mean the ODBC Driver? If yes, the way i'm deploying this Driver is adding this Driver to my App's Installation Package and executing the installer before my App's Installer ends. The driver must be the correct language, i think it has to be the same language than the OS is, for multiple language support you have to deploy all the installers (files) you need and execute one of them, if that's not the correct language that same Installer will call the correct language Installer, but it must be present in the same path.
The Driver installers are here: Visual FoxPro ODBC Driver
(i just tested the MSI versions)
Re: Add a reference to Visual FoxPro dll
Hrmm, I am using the ClickOnce publisher in VS2005, how would I go about adding the driver to my setup package? I dont see an option for that.
I just need to make sure this driver is installed on the client machine before my program runs.
Yes it is the ODBC driver.
Thanks guys!:wave:
Re: Add a reference to Visual FoxPro dll
http://msdn2.microsoft.com/en-us/lib...1x(VS.80).aspx
On that page there's a Note box that provides a link to a page entitled "Adding Custom Prerequisites". Sounds like exactly what you want.
Note that I have never used ClickOnce and barely researched it. I just went to MSDN and typed clickonce prerequisites in the search box and that was the third result. The simple things in life are often the best.
Re: Add a reference to Visual FoxPro dll
Interesting, looks like I need to do some work to the manifest file.
I'll read into it.
If anyone has any first hand knowledge on this subject feel free to let me in on it!
thanks!:wave: