以下为innosetup脚本 mysql数据源
;配置ODBC数据源
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"server";valued
ata:"localhost";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"UID";valuedata
:"root";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"PWD";valuedata
:"123456";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"DATABASE";valu
edata:"vhost";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"OPTION";valued
ata:"3147784";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"port";valuedat
a:"8306";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/TEST;valuetype:string;valuename:"Driver";valued
ata:"C:/WINDOWS/system32/myodbc5.dll";flags:uninsdeletekey;
Root:HKLM;subkey:SOFTWARE/ODBC/ODBC.INI/ODBC Data
Sources;valuetype:string;valuename:"IISLog";valuedata:"MySQL ODBC 5.1
Driver";flags:uninsdeletevalue;