I suggest you ...

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
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    anonymousanonymous shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • davedave commented  · 

        Here's a workaround:

        [Files]
        Source: "a.exe"; DestName:"b.exe"; Flags: dontcopy

        Then pass "b.exe" to ExtractTemporaryFile.

      Knowledge Base and Helpdesk