Archive: Getting more info from CopyFiles


Getting more info from CopyFiles
I'm using CopyFiles to copy a whole lot of files recursively.
It ends up reporting Copy E:\* to C:\fullgame or such.
Is there a verbose option for it so that it reports back to the Installing window the files it is copying?
It ends up looking hung.


Don't copy all files at once. Instead copy each file individually. This gives you chance to write output to the log in between. If you don't know which files need to be copied in advance, you can detect them via FindFirst/FindNext at runtime...


Does FindFirst/FindNext work recursively?
I'd like to be able to replicate the file and folder structure from source location to the $INSTDIR


No, it doesn't. But it should return filenames as well as subfolders. So you can implement your own recursive version in NSIS easily...


You might also want to look at the Locate macro from the FileFunc header. See your NSIS help file, appendix E (There's also a few examples there that might get you started.)


You can try Locate Plugin.