1.用delphi7直接build的时候,我已经取消勾选run-time package;然后手动把程序相关的.db数据库文件也拷贝到了和.exe相同路径下,在本机环境里是可以正常运行的,拷贝到别的机器上,有的机器就运行不了,有的机器可以运行(可以运行的机器上安装了sql2005,不知道是不是有关系);2.用InstallShield2009感觉也就是把程序相关的.db和.exe文件打包然后自动拷贝到指定路径,和我手动拷贝是一回事
数据库初始化代码如下  try
    Table_RemoteConfigInfo.Close;
    Table_RemoteConfigInfo.DatabaseName:=ExtractFilePath(ParamStr(0));
    Table_RemoteConfigInfo.TableName:='data.db';
    Table_RemoteConfigInfo.TableType:= ttParadox;
    Table_RemoteConfigInfo.EmptyTable;
    Table_RemoteConfigInfo.Open;
    Table_TestRecord.Close;
    Table_TestRecord.DatabaseName:=ExtractFilePath(ParamStr(0));
    Table_TestRecord.TableName:='info.db';
    Table_TestRecord.Open;
  except
    Application.MessageBox('数据库初始化失败,程序无法正常运行,请重新安装!','提示',MB_OK+MB_ICONError);
    Application.Terminate;
  end;