I have this in my [Files] header:
[Files]
Source: "{#PathToRepoRoot}\Development\aaa\bbb\libs\MyApp.exe"; DestDir: "{app}"; \
Flags: ignoreversion
Source: "{#PathToRepoRoot}\Development\aaa\bbb\*"; DestDir: "{app}"; \
Excludes: "*.pyc, {#PathToRepoRoot}\Development\aaa\bbb\Build"; \
Flags: ignoreversion recursesubdirs createallsubdirs
It is supposed to exclude all files from the Build folder but for some reason it doesn't. I have tried changing bbb\* to bbb\ and bbb but it doesn't help. I also took a look at Inno Setup : Exclude a directory and its files also but this didn't help. The strange thing is that the .pyc files are being excluded
I found out that doing Excludes: "*.pyc, Build"; does what I want. From what I understand this will exclude all files that are named Build. In my case this is not a problem since I only have one such file. But I do prefer a more specific exclude.