看Borland/Deplhi下的DEPLOY.TXT,将X:/Program Files/Common Files/Borland Shared/BDE下的文件需要的文件(看楼上的)放到
File Group中(最好建一项:BDE Files);
在Scripts的function OnFirstUIAfter()中写脚本:
// BDE路径
szPath = COMMONFILES ^ "Borland Shared" ^ "BDE";
szKey = "SOFTWARE"^"Borland"^"BLW32";
RegDBCreateKeyEx(szKey, "");
RegDBSetKeyValueEx(szKey, "PLAPATH", REGDB_STRING, szPath, -1);
szKey = "SOFTWARE"^"Borland"^"Database Engine";
RegDBCreateKeyEx(szKey, "");
RegDBSetKeyValueEx(szKey, "DLLPATH", REGDB_STRING, szPath, -1);
RegDBSetKeyValueEx(szKey, "CONFIGFILE01", REGDB_STRING, szPath ^ "IDAPI.CFG", -1);