BDE打包并不等于你把路径设置正确,用installshield打包时,要建立Alias 在Path里这只你的数据库路径,Type设为Paradox,在List any Patameters列表框里设置其它属性,不过这还不是最好的方法,最好的办法还是操作注册表或者读ini年文件.
那么path怎么设置呢? 我并不知道用户的安装目录阿? 这么说只能自己编程实现了?
在你的程序里自动创建别名: begin with Session do begin ConfigMode := cmAll; AddStandardAlias('TEMPDB', ExtractFilePath(ParamStr(0)), 'PARADOX'); end; end;你的数据库文件在“Installdir\”下。
用alias就要指定一个路径阿.
在Path里这只你的数据库路径,Type设为Paradox,在List any Patameters列表框里设置其它属性,不过这还不是最好的方法,最好的办法还是操作注册表或者读ini年文件.
我并不知道用户的安装目录阿?
这么说只能自己编程实现了?
begin
with Session do
begin
ConfigMode := cmAll;
AddStandardAlias('TEMPDB', ExtractFilePath(ParamStr(0)), 'PARADOX');
end;
end;你的数据库文件在“Installdir\”下。
实在是不想改程序了.
then in installshield use this alias
AppPath+'\子目錄'作為DataBaseName!
在程序主窗体创建的时候设置别名.
table1.databasename:=ExtractFileDir(Application.Exename)+'\cc';