ExtractTemporaryFile checks only filename and not path name
Actually ExtractTemporaryFile checks only the filename not the path. If you have multiple files with same name on different directories you need to rename files and add DestName parameters to the [files] entries if you need to use ExtractTemporaryFile . With a second parameter (sourcedir) it should possible distinguish different files.
23
votes
3 comments
-
dave
commented
Here's a workaround:
[Files]
Source: "a.exe"; DestName:"b.exe"; Flags: dontcopyThen pass "b.exe" to ExtractTemporaryFile.
-
AdminDeanna Earley
(Admin, Inno Setup)
commented
Maybe an alternative is to give each entry an ID (optional) that can be used in ExtractTemporaryFileID()?
-
AdminMartijn Laan
(Admin, Inno Setup)
commented
Setup doesnt know about source dirs.