@rem filename: reg_gbase_odbc.cmd
@rem function: regedit GBase ODBC Driver
@rem write by: liaosnet@gbasedbt.com 2025-08-18
@echo off
set WORKDIR=%~dp0
echo Current Directory: %WORKDIR%

echo Add "GBase ODBC DRIVER (64-bit)" to "HKLM\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers"
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers" /v "GBase ODBC DRIVER (64-bit)" /d "Installed" /f

echo Add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)"
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /f

echo Add Parameters to "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)"
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "APILevel" /d "1" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "ConnectFunctions" /d "YYY" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "Driver" /d "%WORKDIR%bin\iclit09b.dll" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "DriverODBCVer" /d "03.51" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "FileUsage" /d "0" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "Setup" /d "%WORKDIR%bin\iclit09b.dll" /f
reg add "HKLM\SOFTWARE\ODBC\ODBCINST.INI\GBase ODBC DRIVER (64-bit)" /v "SQLLEVEL" /d "1" /f

echo Finish.
pause