Arrays in NSIS: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(direct download link)
(completely reworked to cover all aspects about arrays in nsis)
Line 1: Line 1:
{{PageAuthor|Afrow UK}}
{{PageAuthor|Afrow UK}}


== Description ==
NSIS is currently missing array support.
This is a script header that I wrote which adds Array support to NSIS.
There are only single-dimensional variables, no arrays or structures of any kind.
<div style="border: 1px solid #F00; padding: 5px">
 
The Array script header has been superseded by the NSISArray plugin and script header.
A feature request has been submitted to fix this issue and add array support to NSIS [http://sourceforge.net/tracker/index.php?func=detail&aid=1414916&group_id=22049&atid=373088].
 
Meanwhile, two solutions have been created by Afrow UK, to work with arrays in NSIS:
 
== Array Header File ==
The Array Header File is a collection of macros and functions that simulate arrays in native NSIS.
It has been superseeded by the NSISArray.dll PlugIn, which is faster and offers more advanced options.
 
 
== Array PlugIn ==
The PlugIn features full array support for NSIS, though not with native commands.
The .dll file handles everything related to the arrays on runtime.


<attach>NSISArray.zip</attach>
<attach>NSISArray.zip</attach>
</div>
''includes documentation and example files''
 
-Stu


== Links ==
== Links ==
<attach>Array.zip</attach><br>
* [http://forums.winamp.com/showthread.php?s=&threadid=222275 Forumthread for the PlugIn]
[[Image:Zip.gif]] [http://myweb.tiscali.co.uk/imker/downloads/Array.zip Array.zip] (6 KB) (Mirror #1)
* [[Image:Zip.gif]] [http://myweb.tiscali.co.uk/imker/downloads/Array.zip Mirror] (PlugIn file only, 6 KB)
 
Also includes readme and an example.


[[Category:Plugins]]
[[Category:String Functions]]
[[Category:String Functions]]

Revision as of 21:00, 5 April 2007

Author: Afrow UK (talk, contrib)


NSIS is currently missing array support. There are only single-dimensional variables, no arrays or structures of any kind.

A feature request has been submitted to fix this issue and add array support to NSIS [1].

Meanwhile, two solutions have been created by Afrow UK, to work with arrays in NSIS:

Array Header File

The Array Header File is a collection of macros and functions that simulate arrays in native NSIS. It has been superseeded by the NSISArray.dll PlugIn, which is faster and offers more advanced options.


Array PlugIn

The PlugIn features full array support for NSIS, though not with native commands. The .dll file handles everything related to the arrays on runtime.

NSISArray.zip (99 KB) includes documentation and example files

Links