@rem filename: reg_gbase_odbc.cmd
@rem function: regedit GBase ODBC Driver
@rem write by: liaojinqing@gbase.cn 2021-11-11
@echo off
set WORKDIR=%~dp0
echo Current Directory: %WORKDIR%

echo Add "IBM INFORMIX ODBC DRIVER" to "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\ODBC Drivers"
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\ODBC Drivers" /v "IBM INFORMIX ODBC DRIVER" /d "Installed" /f

echo Add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER"
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /f

echo Add Parameters to "HKLM\SOFTWARE\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER"
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "APILevel" /d "1" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "ConnectFunctions" /d "YYY" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "Driver" /d "%WORKDIR%bin\iclit09b.dll" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "DriverODBCVer" /d "03.51" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "FileUsage" /d "0" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "Setup" /d "%WORKDIR%bin\iclit09b.dll" /f
reg add "HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\IBM INFORMIX ODBC DRIVER" /v "SQLLEVEL" /d "1" /f

echo Finish.
pause