The code you are looking for is most likely here
ThanxXx! but i hv found the way Xactly i want to create
Auto DSN
by using below
Registry Entries in installation wizard.
or
we can use this by
saving it as
Registry File Format.
-------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC]
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"DBQ"="C:\\XYZ.mdb"
"DriverId"=dword:00000019
"FIL"="MS Access;"
"SafeTransactions"=dword:00000000
"UID"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes]
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes\Jet]
"ImplicitCommitSync"=""
"MaxBufferSize"=dword:00000800
"PageTimeout"=dword:00000005
"Threads"=dword:00000003
"UserCommitSync"="Yes"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
"ABC"="Microsoft Access Driver (*.mdb)"
-------------------------------------------------------------------------------------------------------------
Regards
BilazZz Bajwa