【发布时间】:2016-04-12 08:03:35
【问题描述】:
我的安装程序中有一个带有AfterInstall 操作的文件,如下所示:
AfterInstall: UpdateImageLoaderConfigValues()
并且我希望该过程调用相同的 Pascal 脚本函数两次,因为据我所知,我不能有两个 AfterInstall 操作,所以我已经这样设置了:
procedure UpdateImageLoaderConfigValues();
begin
SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastConfigurationPath}, ExpandConstant('{app}/Configurations'))
SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastImagePath}, ExpandConstant('{app}/Images'))
end;
我的函数SaveValueToXML 有一个签名:
function SaveValueToXML(const AFileName, APath, AValue: string);
问题是编译失败是因为
未知标识符“SaveValueToXML”
UpdateImageLoaderConfigValues 中我尝试使用此功能的点出错。
如何使SaveValueToXML 对UpdateImageLoaderConfigValues 可见?
【问题讨论】: