I'm using AfterInstall
on a [Files]
entry with a wildcard Source
parameter. Calling CurrentSourceFilename
simply gives me the source pattern -- not the actual file that is being processed. Is there any way to get the actual filename?
The following example would log {code:DirName}\*.ext
once for each file, not {code:DirName}\file1.ext
, {code:DirName}\file2.ext
etc.
[Files]
Source: "{code:DirName}\*.ext"; Flags: external; AfterInstall: LogName
[Code]
procedure LogName;
begin
Log(CurrentSourceFilename);
end;
function DirName(Param: String): String;
begin
Result := 'dir';
end;