In my installer script, I use two executable files with the same filename. One is in a subdirectory that is next to the other executable file.
The [Files] section looks something like this:
Source: "{#MyReleaseDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion signonce
Source: "{#MyReleaseDir}\{#MyBinDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion signonce
Source:
"{#MyReleaseDir}\*"; Excludes:
"\{#MyAppExeName},\{#MyBinDir}\{#MyAppExeName}"; DestDir: "{app}";
Flags: ignoreversion recursesubdirs createallsubdirs
When I run the script, both executables get compressed, but only the " {#MyReleaseDir}\{#MyBinDir}\{#MyAppExeName}" executable gets installed, but at the "{app}\{#MyAppExeName}" location.
The same problem occurs when excluding all .exe files using a wildcard:
Source: "{#MyReleaseDir}\*"; Excludes: "*.exe"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Does anyone have some suggestions or workarounds?