Traditionally, my client software forces a configuration of the ODBC source by going into ‘Administrative Tools’ and manually creating a new ODBC connection.
Is there anyway to configure a new ODBC connection during an install?
On a related note, is there a way to capture an existing ODBC connection for use in this theoretical process?
I’ve used the nullsoft installer back in the day and they have some sample scripts.
http://nsis.sourceforge.net/Create_an_ODBC_entry_for_a_MS_Access_database
http://nsis.sourceforge.net/Check_whether_an_ODBC_entry_exists
Basically you write to the correct values to the registry at: HKEY_LOCAL_MACHINE “SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources”
Use the registry tools included in your packaging software.
Which are you using? and What type of DB?