Archive: Add the files which is listed in a text file.


Add the files which is listed in a text file.
Hi,
I want to add some files in a section.
Names of these files are specified in a text file.
How can i add these list of files to the section.
Can anyone please suggest any idea?

(i.e),
In a text file say Files.txt i will have the following list.

Files.txt
------------------
action.aspx
say.aspx
shoot.aspx
try.aspx
--------------------
I tried to read from file and assign the output variable as $2.

If i say File $2, it is taking $2 as a file and not the content of $2.
So what are the other ways available to achieve this?
Please anyone help me.

Yours,
N.Muthukkumaran


It's because the vars are filled at run time, not at compile time...

Try to make a txtfile and rename it to *.nsh(where * should be your filename XD):
-------------------------------------------
SetOutPath "$INSTDIR"
File "C:\My Folder1\My File"
SetOutPath "$INSTDIR\Folder2"
File "C:\My Folder1\Folder2\My File2"
-------------------------------------------

and include the *.nsh where you want your files to be

no idea if this works just try it


Thanks Mr.Davion.
It works fine.
Yours,
N.Muthukkumaran