Andrew Truckle
Andrew Truckle

Reputation: 19107

Using multiple DLL files in Inno Setup where there are duplicates

I am trying to understand how Inno Setup compiles multiple files of the same name.

I have seen some information about this but given the following:

Source: "*.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\SomeOtherPath1\*.dll"; DestDir: "{app}\OtherLibrary1"; Flags: ignoreversion
Source: "..\SomeOtherPath2\*.dll"; DestDir: "{app}\OtherLibrary2"; Flags: ignoreversion

We know that the folder folders will contain some duplicate DLLs (which as far as I am aware at the moment have the same version numbers). Does the compiler embed all of the duplicates because the source folders are different?

Up until now I had been using the preprocessor to selectively include the duplicates, but if the compiler can handle it automatically then I could use the simplified script above.

Thanks for confirming.

Upvotes: 0

Views: 447

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202271

Does the compiler embed all of the duplicates because the source folders are different?

Yes. Only if multiple [Files] section entries point to the same file (same path), Inno Setup will (by default) merge those entries.

Were it not so, my answer to this (yours) question would not be as complicated:
Do not include duplicate files multiple times in the Inno Setup installer

Upvotes: 1

Related Questions