I have a file in my installer with an AfterInstall
action like so:
AfterInstall: UpdateImageLoaderConfigValues()
And I would like the procedure to call the same Pascal Script function twice as I can't have two AfterInstall
actions as far as I am aware, so I have set this up like so:
procedure UpdateImageLoaderConfigValues();
begin
SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastConfigurationPath}, ExpandConstant('{app}/Configurations'))
SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastImagePath}, ExpandConstant('{app}/Images'))
end;
And my function SaveValueToXML
has a signature:
function SaveValueToXML(const AFileName, APath, AValue: string);
The problem is that compilation fails because of
Unknown identifier 'SaveValueToXML'
error at the points in UpdateImageLoaderConfigValues
where I am trying to use this function.
How can I make SaveValueToXML
visible to UpdateImageLoaderConfigValues
?