Archive: Copying uncompressed folder


Copying uncompressed folder
Hi fellows
I need some help
Let me explain my problem :
I need to copy a folder and all files included.
The problem is, I don't want to compile a modified .nsi each time. So I'd like to put the folder uncompressed or compressed in fact next to the installation program and then make NSIS copy it while the installation is executed.

So here is the structure of the CD I wish to send to my associates :
>Root
>>Setup.exe
>>$folder_with_different_name_each_time
>>>Files_in_that_folder


So you see, the problem is I keep the same .exe and make it install different files.
I could I do that?

Thanks


It can be done with CopyFiles.
The only question is about that "folder_with_different_name_each_time".

Some kind of search&copy loop needs to be coded, either to search for any folders (if name doesn't matter because you need to copy all folders or there's only 1 folder) or for folders named with some kind of mask (if part of that "different name" is constant, like "bla_xxx")

Attached script with a function that copies all folders from some path to $INSTDIR.


take a look here to find out how you can customize files lists to suit your needs. Then, you could use your exported list in combination with makecab, either to create one or more cabs, or nsis header to include with your installation the way you like, either one big stub, or uncompressed to their proper location using CopyFiles.