Вопрос

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.

Это было полезно?

Решение

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
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top