I've got a application that runs on a asa8 database. I'm using inno-setup to compile an install file. I am looking for sample inno-setup code to enter the ODBC entry in the registry. I have based my current logic from the below post.
Adaptive server anywhere ASA SqlAnywhere 8.0 ODBC driver
Currently I've got in the inno-setup file under the [registry] section:
[Registry]
;ASA DB drivers
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 8.0"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 8.0"; ValueType: string; ValueName: "Driver"; ValueData: "{app}\dbodbc8.dll"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 8.0"; ValueType: string; ValueName: "Setup"; ValueData: "{app}\dbodbc8.dll"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers"; ValueType: string; ValueName: "Adaptive Server Anywhere 8.0"; ValueData: "Installed"
;ODBC entry
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName:
"AutoStop"; ValueData: "Yes"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName:
"DatabaseFile"; ValueData: "{app}\db_loadcon\loadcon.db"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName: "Driver"; ValueData: "{app}\dbodbc8.dll"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName: "Integrated"; ValueData: "NO"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName: "PWD"; ValueData: "sql"
Root: HKLM; Subkey: "SOFTWARE\ODBC\ODBC.INI\LOADCON"; ValueType: string; ValueName: "UID"; ValueData: "dba"
All this works fine (sort-off) in WINXP (32bit). It doesn't work in Win7 (64bit). Can someone show inno-setup code that will work for both 32 and 64bit OS. I am aware of the WOW6432Node in the registry and know that there is a 64 and a 32 bit ODBC Data Source Administrator in WIN7. I am aware that the 32bit ASA8 ODBC connection can only be made through the ODBCAD32.exe that is located in C:\Windows\SysWOW64\ folder. I have fiddled with inno-setup code but not being successful. I now need someone's expert opinion.
Also when I run the above inno-setup code on WINXP it creates a ODBC entry in the registry but does not show the entry in the actual ODBC Data Source Adminstrator GUI. However the ODBC connection works. Any idea on how to make the connection show in the GUI?