Wednesday, November 4, 2015

InnoSetup: pack folder with all subfolders

http://stackoverflow.com/questions/20790114/innosetup-pack-folder-with-all-subfolders

I have a 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 subdirs line by line).
Inno 5.4.2.
shareimprove this question
up vote11down voteaccepted
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
shareimprove this answer

http://stackoverflow.com/questions/20790114/innosetup-pack-folder-with-all-subfolders