最简单方法:
下载 http://www.jrsoftware.org/files/MiniReg.exe
和 http://www.jrsoftware.org/download.php/bdeinst.cab, 取出后者包中的
BdeInst.dll 文件。
脚本中这样使用:
[Files]
Source: "MiniReg.exe";
DestDir: "{tmp}"
Source: "BdeInst.dll";
DestDir: "{tmp}"
[Run]
Filename: "{tmp}/MiniReg.exe";
Parameters: """{tmp}/BdeInst.dll"""
如果要创建Alias
procedure CreateAlias;
const
FDbDriver = 'PARADOX';
SubDir = 'Data';
var
FAlias: string;
FAliasDir: string;
begin
FAlias := 'aLog2000';
Session.ConfigMode := cmPersistent;
if not Session.IsAlias(FAlias) then
begin
AliasDir := ExtractFilePath(ParamStr(0)) + SubDir;
Session.AddStandardAlias(FAlias, FAliasDir, FDbDriver);
Session.SaveConfigFile;
end;
end;