Hi,
Consider the following scenario.
I add a new ODBC driver (let’s say Oracle) to be installed using Advanced Installer:
I want to allow the user to enter the Oracle database connection info in the dialog phase, so I can save the information, verify the connection is good, and, possibly, run a query against the database (during the UI phase). I see there is a “SQLConnectionDlg” and a “SQLServerConnectionDlg”. The latter looks like it’s only meant for Microsoft SQL, so I would use the former for Oracle (or any non-SQL Server connection).
The problem seems to be that any ODBC drivers installed using AI aren’t available for use until after they are installed in the execution phase(?). Is there any way to test an ODBC-based database connection (using an ODBC driver that’s not already installed on the machine, like Oracle) during the UI phase?
I see there is a “Test Sql Connection” button on the “SQLServerConnectionDlg”, but I’m guessing it’s using the SQL driver that Microsoft includes (by default) in Windows. But, what if I want to test the connection of a database that doesn’t have a driver already installed on the machine (basically, any non-Microsoft database)? I know I could add the ODBC driver packages/redistributables as pre-requisites. But, since you can’t conditionalize pre-requisites, that’s not a great option.
Thanks!