ODBC attributes not set - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

ODBC attributes not set

Hi,

I try to configure a ODBC datasource for MySQL 5.1.8 ( http://dev.mysql.com/downloads/connector/odbc/ )
but the attributes are not written to the registry. ( HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI ... )

If I use the import feature for Data Sources, they don't get imported. On the ODBC-Page it says
Only the data source's name and attributes will be imported.
But the attributes section is empty.
Is this a MySql or AI-Problem?
Using Enterprise project, v 8.1.3
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ODBC attributes not set

Hi,

Please note that the ODBC data sources attributes are not imported. You need to define them manually after creating the data source in Advanced Installer. We will try to improve this in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: ODBC attributes not set

Hi cosmin,
thanks for your answer.

That I have to define the attributes by hand is not that bad. But when I define them by hand like they are present in my registry, they don't get written to the target machines registry. Only the Data Source is created, including DRIVER path and PORT, but no other attributes.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ODBC attributes not set

Hi,

Which attributes are not installed? Please note that the authentication attributes will be either set by your application when it connects to the DSN/ODBC driver or entered by the user in the ODBC driver's dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: ODBC attributes not set

All of them. That is:
BIG_PACKETS
DATABASE
FOUND_ROWS
PWD
SERVER
UID

I want to configure this DataSource ready to use, as it needs to be done by each member of the project, where everyone uses the same settings-

I also tried with just BIG_PACKETS, but it was not added to the registry.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ODBC attributes not set

Hi,

Can you please send us the .AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ODBC attributes not set

Hi,

Are you testing this on a 64-bit machine? If so, please note that the registry entries are created in the Wow6432Node key because you are using a 32-bit installer. Also, the data source will not be visible in Administrative Tools from Control Panel because it shows only 64-bit data sources. It can still be used by 32-bit applications, but it's not shown.

If you want your data source to be visible in the 64-bit context, you can change your package type to 64-bit in Install Parameters page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: ODBC attributes not set

Hi,

no I tested on a 32bit XP.

edit: my Dev PC is 64bit, and XP 32bit is running in virtual box
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ODBC attributes not set

Hi,

In that case most likely the driver rejected the attributes. It all depends on the driver and its configurations. The data source installation is performed by Windows Installer through the ODBCSourceAttribute table, so there's not much we can do about this. Try investigating why the driver doesn't accept these attributes.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: ODBC attributes not set

Hi,

I came up with a mixed installation:
- The ODBC-Feature creates the datasource with path to driver and port.
- The other attributes are added using the registry feature.

thx

Return to “Common Problems”