ODBC Text Driver is no longer installed correctly - Advanced Installer Community
NWOM
Posts: 2
Joined: Thu May 15, 2014 10:06 am

ODBC Text Driver is no longer installed correctly

Hello,

After updating from Advanced Installer 10.0 to 11.0, the text driver in our install no longer works with our application.

After further analysis it appears that the text driver is installed differently in the registry.

When installing using the 10.0 installer it installed the following in the registry (which was correct):

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\TKP32_TEXT]
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"DriverId"=dword:0000001b
"SafeTransactions"=dword:00000000
"UID"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\TKP32_TEXT\Engines]

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\TKP32_TEXT\Engines\Text]
"ImplicitCommitSync"=""
"Threads"=dword:00000003
"UserCommitSync"="Yes"
After updating to 11.0 it installs only the following in the registry:

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\TKP32_TEXT]
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
In the AIP files from before and after, the ROW component is the same:

Code: Select all

<COMPONENT cid="caphyon.advinst.msicomp.MsiOdbcDataSrcComponent">
    <ROW DataSource="Data_Source" Component_="Data_Source" Description="TKP32_TEXT" DriverDescription="Microsoft Text Driver (*.txt; *.csv)" Registration="0"/>
</COMPONENT>
Any help would be greatly appreciated. Thanks in advanced.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ODBC Text Driver is no longer installed correctly

Hello and welcome to Advanced Installer forums,

In the former versions of Advanced Installer we have used the "InstallODBC" Windows Installer standard action to install ODBC drivers.

Starting with the newer versions of Advanced Installer, in order to avoid some drawbacks of the above standard action, we have implemented a proprietary ODBC custom action (i.e. AI_OdbcInstall) which it is used to install ODBC drivers and DSNs. However, I'm not sure why you are getting the related behavior when using the new version of Advanced Installer.

Can you please proceed like this:
- go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" and "Install Execution Stage -> Searches" actions group, like this:
  • Property: AI_USE_STD_ODBC_MGR
    Value: 1
- build and run your project

and see if the behavior still persist? If so, can you please send us the .AIPS (project files) created with AI 10.0 and the one created with AI 11.0 support at advancedinstaller dot com so we can analyze them?

When the "AI_USE_STD_ODBC_MGR" property is set the setup package will use the "InstallODBC" Windows Installer standard action to install drivers instead of our new "AI_OdbcInstall" custom action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NWOM
Posts: 2
Joined: Thu May 15, 2014 10:06 am

Re: ODBC Text Driver is no longer installed correctly

Thank you very much for the prompt reply.

After setting the property, the registry key is now the same as it was in the 10.0 version.

Will this be required to be set in the future, or will this be potentially implemented automatically in a future version?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ODBC Text Driver is no longer installed correctly

You're welcome.

Yes, this workaround should also be used in the future versions of Advanced Installer.

If you have any question let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”