Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno-setup pack all files in a folder exept for 1 file

Tags:

inno-setup

I want to pack all files in a folder like so:

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

But I want it to pack all files inside Src except for 1 file.

Hopefully there is some code to exempt a file from being packed.

like image 272
Goudgeld1 Avatar asked Mar 29 '14 09:03

Goudgeld1


1 Answers

To specify the file you want to exclude from your setup archive source use the Excludes parameter:

[Files]
Source: "Src\*"; Excludes: "Src\SubFolder\FileToExclude.exe"; DestDir:"{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
like image 160
TLama Avatar answered Sep 17 '22 23:09

TLama