ufo! 好像还是不行,这个是我的代码,您看看那里有问题?procedure TForm1.Connect_DB;beginif fileexists(DataBaseFileName) thenbegin Database1.DatabaseFileName := ExtractFilePath(Application.ExeName) + DataBaseFileName; Database1.DatabaseName:= ExtractFilePath(Application.ExeName) + DataBaseFileName; Table1.DatabaseName:=Database1.DatabaseName; Table1.TableName :='rd'; Table1.Open;setCurrentDirectory(PChar(ExtractFilePath(Application.ExeName)));endelse begin MessageBox(0,'数据库载入出错,可能被移动或者删除!','警告',MB_OK or MB_ICONWARNING); application.Terminate ; end; end;我用INNO-SETUP打包好像就是不行。