Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Example/Tutorial (http://forums.winamp.com/showthread.php?t=267280)

MajinSephiroth 6th March 2007 22:55

Example/Tutorial
 
I have taken a look at the wiki, documentation and most of the examples but one thing still remains un-answered in my head.

I guess I am getting confused from replies to posts that are similar to what I am about to ask.

So I have compiled some of the examples that come with NSIS and see how they work, the principle is very basic and easy to understand. There is however one thing I have not understood. I have a full directory structure that I need compressed inside the compiler, but this directory structure has more than 100 folders and over 1000 files... don't tell me I have to specify all the files and folders using the "File <insert filename>"

I have taken a look at the CopyFile function, but, I am puzzled by:

"CopyFiles $INSTDIR\*.dat $INSTDIR\backup"

Does it compress all the files and the directory structure they have as outlined in a .dat file?

It really just is a huge confusion that won't let me wrap my head around it.

So let's assume I have the following directory structure with files as follows:

/MainFolder
|+SubFolder
||file4
||file5
|file1
|file2
|file3


How would I add them to the installer?

goldy1064 6th March 2007 23:10

To add them to the installer, just do
code:

File /r "MainFolder"


MajinSephiroth 6th March 2007 23:14

Oh that's what the /r switch did, I was wondering about that but was not sure.

Thanks a lot.


All times are GMT. The time now is 04:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.