I am making an application using c#.net. The application relies on a PostgrSQL ODBC driver and therefore has to check if the driver has already been installed on the user’s computer. If not the ODBC driver has to be installed during my applications own installation process. The DSN also has to be configured during the setup.
My question is therefore, is there a way to first check for a driver during setup and, if it’s not there, can the setup be set to automatically install a driver and configure the DSN?
I’m using Microsoft Visual Studio 2010 but I can’t see how to include another setup in the publishing wizard. I am also struggling to find any useful information on Google or stackoverflow.
Regards
Peter
I found a good example for the first part of my question on this website.
As for the second part, “how to configure the DSN”, I found another code snippet which only needed some tweaking.