I have an installer which implements the tutorial solutions for both the TestSQLConnection and the solution for selecting either SQL authentication or Windows Authentication. My issue is that when I run the TestSQLConnection defined action, the SqlConnectionString is incomplete- it is not including the Authentication information from the variable which sets the UID/PW or Integrated Security portion of the connection string. Because this portion of the string is missing, the test defaults to Windows Authentication every time. Below are the actions that are run when I click "Next" on the SQL Connection Dialogue.
1.Name = [SQL_AUTHORIZATION]
Argument = User ID=[USERNAME_PROP]; Password = [PASSWORD_PROP];
Condition = SQLAUTHENTICATION = "Sql Server Authentication"
2.Name = [SQL_AUTHORIZATION]
Argument = Integrated Security=True
Condition = SQLAUTHENTICATION = "Windows Authentication"
3.Name = [SERVER_PROP]
Argument = [SqlServerBrowseComboBox]
Condition = AI_INSTALL
4.Name = [SqlConnectionString]
Argument = Integrated Security=True
Condition = SQLAUTHENTICATION = "Windows Authentication"
5.Name = Execute custom Action
Argument = TestODBCConnection
Condition = ( NOT (SqlConnectionString = "") )
6.Name = [Display a specific dialog]
Argument = ShortcutsDlg
Condition = AI_INSTALL AND SqlConnectionOK = "1"
To complicate things even more, when the SqlConnectionString is called on the next dialog, it shows correctly (with the SQL_AUTHORIZATION in place). If I do away with the SQL_AUTHORIZATION variable in the SqlConnectionString and hard code a UID/PW, it works correctly, but as soon as i add in that variable it defaults back to always using Windows Authentication.
Anyone have any ideas?