Delphi IS 4.0 有一步是修改注册表, 你可以作类似的注册项:
1.建KEY
/HKEY_CURRENT_USER/Software/ODBC/ODBC.INI/ODBC Data Sources
建Value
Name= MS Access Database Data = "Microsoft Access Driver(*.mdb)"
= YourOwnDataSouree = "Microsoft Access Driver(*.mdb)"
2.建KEY
/HKEY_CURRENT_USER/Software/ODBC/ODBC.INI/MS Access Driver
建Value
Name = Driver Data = "C:/Windows/System/ODBCJT32.DLL" (此处
可用IS中的<SYSTEMDIR>等)
= DriverID = 0x00000019
= SafeTransactions = 0x00000000
= UID = ""
3.建KEY
/HKEY_CURRENT_USER/Software/ODBC/ODBC.INI/MS Access Driver/Engines/Jet
建Value
Name = ImplicitCommitSync Data = ""
=Threads = 0x00000003
=UserCommitSync = "Yes"
4.建KEY
/HKEY_CURRENT_USER/Software/ODBC/ODBC.INI/YourOwnDataSource
建Value
Name = DBQ Data = "YourOwnDataBasePath/DataBaseName.mdb"
= Driver = "C:/WINDOWS/SYSTEM/ODBCJT32.DLL"
= DriverID = 0x00000019
= FIL = "MS Access;" (分号)
= SafeTranscations = 0x00000000
= UID = ""
5.建KEY
/HKEY_CURRENT_USER/Software/ODBC/ODBC.INI/YourOwnDataSource/Engines/Jet
建Value
Name = ImplicitCommitSync Data = ""
= MaxBufferSize = 0x00000800
= PageTimeOut = 0x00000005
= Threads = 0x00000003
= UserCommitSync = "Yes"
到此为止你有注册表设置好了
然后把几个Ms Access 2000的几个DLL和ODBCJT32.DLL附带在你的安装文件里,并注意
它们的安装路径, 经过这此设置, 你就可以通过 Delphi IS 4.0 安装ODBC了.
试试吧!