There is no support for arrays in NSIS by default. The NSISArray plugin adds array support with over 20 built-in array manipulation functions along with many more in the NSISArray script header.
File:NSISArray.zip
-Stu