Archive: Adding all files in a folder to the installer


Adding all files in a folder to the installer
hello all!
im very new to this NSIS installer malarkey so i was wondering if someone could help?

im currently developing an installer for an .exe, and some nested external folders and files - this i have managed thanks to searching this forum and adapting the suggestions and codes, so already you have all helped me loads!

however, some of the folders i want to add conatin more than 100 .png files(!), and tbh i really dont want to have to define and add each one to the installer by hand..

is there any way of installing entire folders with maybe a loop function?

please dont forget im new to this so my knowledge of syntax and code structure is pretty minimal at the moment! ;)

thank you.


See NSIS manual 4.9.3.2 CopyFiles and 4.9.1.5 File


thanks red wine for your reply!
i will give these a go - though, like i say, i havent got a great idea on how to actually work with NSIS code


wow that was so simple!
ive used

SetOutPath "$INSTDIR\SubFolder\"
File /r Folder\SubFolder\*.jpg*

perfect

thanks Red Wine!
:D