Inno-setup package of all files in a folder except 1 file

I want to pack all the files in such a folder

Source: "...Src\*";DestDir:"{app}";Flags: ignoreversion recursesubdirs createallsubdirs

But I want it to pack all the files inside Src, with the exception of one file.
I hope that there is some code that would not pack the file.

+4
source share
1 answer

To specify the file that you want to exclude from the installation archive source, use the parameter Excludes:

[Files]
Source: "Src\*"; Excludes: "Src\SubFolder\FileToExclude.exe"; DestDir:"{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
+8
source

Source: https://habr.com/ru/post/1534010/


All Articles