Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: pack folder with all subfolders

Tags:

inno-setup

I have this line in .iss file:

Source: "..\Tcl\*"; DestDir: "{app}\Tcl"; Flags: ignoreversion 

which packs folder Tcl. But it takes only files inside folder, but does not take subfolders inside Tcl. Is there a way to take entire folder Tcl with all subfolders and files? (without listing all that subfolders line by line).

Inno Setup 5.4.2.

like image 614
Prog1020 Avatar asked Dec 26 '13 19:12

Prog1020


1 Answers

Yes, there is. Simply include the recursesubdirs flag to your [Files] section entry. The help says about this flag the following:

Instructs the compiler or Setup to also search for the Source filename/wildcard in subdirectories under the Source directory.

So, all you should do is modify your [Files] section entry this way:

[Files] Source: "..\Tcl\*"; DestDir: "{app}\Tcl"; Flags: ignoreversion recursesubdirs 
like image 183
TLama Avatar answered Sep 22 '22 05:09

TLama