Reputation: 139
For an NSIS installer I have been using this command:
SetOutPath $INSTDIR\data
File /r /x *.svn data\newTerrainTiled
to copy my data files into the executable itself. I now have a larger data set that has outgrown the maximum size of the installer executable. I tried to change my code to this:
SetOutPath $INSTDIR\data
CopyFiles /r $EXEDIR\data\newTerrainTiled
But obviously CopyFiles does not have a recursive flag. I realize I could create the subdirectories of the newTerrainTiled folder one by one and then used CopyFiles with the wildcard (*) character. I wanted to know if someone has already come up with a recursive method of copying using CopyFiles in place of File for when data sets become large.
Thanks.
Upvotes: 1
Views: 9825
Reputation: 101569
CopyFiles can copy a directory (with all files and subfolders) but in your case it would only be useful if the data directory was on a CD/DVD along with the installer.
Other alternatives are:
Upvotes: 9