[File] Excludes problem with duplicate filename

33 views
Skip to first unread message

E Vi

unread,
Aug 24, 2024, 5:35:39 AM8/24/24
to innosetup
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?

Martijn Laan

unread,
Aug 24, 2024, 8:51:50 AM8/24/24
to inno...@googlegroups.com
Both get installed, but in the same location, just like you told it to do. You need to add the desired subdir to your DestDir param.

Greetings,
Martijn 


Op za 24 aug , E Vi <e...@f-word.com> schreef:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/eb5fb580-0c55-4234-ae65-05366fef71e1n%40googlegroups.com.

E Vi

unread,
Aug 24, 2024, 10:36:18 AM8/24/24
to innosetup
Hi Martijn,

Ahh, yes, you are right. Earlier code masked my mistake and I looked in the wrong place...

Thanks for your help

Reply all
Reply to author
Forward
0 new messages