This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- SQLRTGetConnectionInfo returns blank values after upgrade to Installshield 2010 SP1
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Oct 06, 2010
08:04 AM
SQLRTGetConnectionInfo returns blank values after upgrade to Installshield 2010 SP1
I've recently upgraded an Installshield MSI Project from Installshield 2008 (app version 7.1) to Installshield 2010 SP1 (app version 7.2).
The installation retrieves previous SQL connection information using the SQLRTGetConnectionInfo & SQLRTGetConnectionAuthentication functions during minor upgrades so that the user doesn't get prompted to enter the SQL information.
When I do a minor upgrade of the 7.1 version of the application to 7.2 using the newly build Installshield 2010 setup, the SQLRTGetConnectionInfo incorrectly returns blank parameters with the function’s return code as ISERR_SUCCESS. The SQLRTGetConnectionAuthentication method also returns the incorrect value for the authentication type. This causes the upgrade to fail as the connection settings it tries to use hasn't been set correctly.
Does anybody know why the SQLRTGetConnectionInfo function would fail to retrieve connection information? I am using SQLRTInitialize2 in the OnBegin() event handler and SQLRTGetConnectionInfo & SQLRTGetConnectionAuthentication in the OnMaintUIBefore() event handler.
Thanks,
Henriet
The installation retrieves previous SQL connection information using the SQLRTGetConnectionInfo & SQLRTGetConnectionAuthentication functions during minor upgrades so that the user doesn't get prompted to enter the SQL information.
When I do a minor upgrade of the 7.1 version of the application to 7.2 using the newly build Installshield 2010 setup, the SQLRTGetConnectionInfo incorrectly returns blank parameters with the function’s return code as ISERR_SUCCESS. The SQLRTGetConnectionAuthentication method also returns the incorrect value for the authentication type. This causes the upgrade to fail as the connection settings it tries to use hasn't been set correctly.
Does anybody know why the SQLRTGetConnectionInfo function would fail to retrieve connection information? I am using SQLRTInitialize2 in the OnBegin() event handler and SQLRTGetConnectionInfo & SQLRTGetConnectionAuthentication in the OnMaintUIBefore() event handler.
Thanks,
Henriet
(2) Replies
‎Oct 08, 2010
09:59 AM
I’ve attached a sample Installshield 2008 MSI project to demonstrate the issue. The setup will create a SQL database called TEST with single table called USER. This was tested against a SQL Express 2005 SP3 database.
The Install Script contains the following methods:
1. OnBegin - calls SQLRTInitialize2()
2. OnFirstUIBefore
3. OnMaintUIBefore
4. OnResumeUIBefore
5. OnSQLLogin
IS_SQLSERVER* properties has been cleared.
If you install the application, then run a modify, the OnMaintUIBefore will correctly retrieve the previous SQL connection values from the registry using SQLRTGetConnectionInfo and SQLRTGetConnectionAuthentication. Minor upgrades also retrieve the SQL connection values from registry correctly.
Upgrade the project to InstallShield 2010 and do a minor upgrade. The SQL connection values are no longer retrieved from the registry but seems to be set to the default IS_SQLSERVER* property values.
Any help would be greatly appreciated.
Thanks,
Henriet
The Install Script contains the following methods:
1. OnBegin - calls SQLRTInitialize2()
2. OnFirstUIBefore
3. OnMaintUIBefore
4. OnResumeUIBefore
5. OnSQLLogin
IS_SQLSERVER* properties has been cleared.
If you install the application, then run a modify, the OnMaintUIBefore will correctly retrieve the previous SQL connection values from the registry using SQLRTGetConnectionInfo and SQLRTGetConnectionAuthentication. Minor upgrades also retrieve the SQL connection values from registry correctly.
Upgrade the project to InstallShield 2010 and do a minor upgrade. The SQL connection values are no longer retrieved from the registry but seems to be set to the default IS_SQLSERVER* property values.
Any help would be greatly appreciated.
Thanks,
Henriet
‎Nov 04, 2010
08:35 AM
I haven't been able to resolve this issue. Has anyone come across the same problem?
Thanks,
Henriet
Thanks,
Henriet