Add Dependencies to Setup File

Benvor
Benvor used Ask the Experts™
on
Hi Experts

I have a WinForms app with a few dependencies (MySQL.DATA is one of them). I have the MySQL installed on my computer and the app works fine when I run the setup on my computer but when I try to run it on a computer that doesn't have the MySQL installed it doesn't work. How can I get the setup project to work with this dll on any computer?

Any help would be greatly appreciated
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If you add a reference of mySql.data in your project, dependencies will add automatically in your setup project. If you can't find mySql.data.dll, refresh dependencies again.

Author

Commented:
yes I can add them to the dependencies and they show in my setup dependencies as well. But the path of the DLL is "C:\Program Files\MySQL..." and when I run the setup on the other pc then it searches for that DLL in "C:\Program Files\MySQL..." Instead of the install directory

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial