Arrays in NSIS: Difference between revisions
m (Reverted edits by 59.174.141.105 to last version by Afrow UK) |
No edit summary |
||
Line 10: | Line 10: | ||
== Array Header File == | == Array Header File == | ||
The Array header (nsh) file is a collection of macros and functions that simulates arrays in native NSIS, but has been superseded by the NSISArray plug-in, which is faster, uses less resources and offers more advanced options (below). | The Array header (nsh) file is a collection of macros and functions that simulates arrays in native NSIS, but has been superseded by the NSISArray plug-in, which is faster, uses less resources and offers more advanced options (below). | ||
== nsArray plug-in == | |||
A much simpler and smaller DLL than NSISArray (below). Provides less out-of-the-box functionality but is faster and uses less memory. | |||
<attach>NsArray.zip</attach> | |||
== NSISArray plug-in == | == NSISArray plug-in == |
Revision as of 18:31, 7 May 2011
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 (nsh) file is a collection of macros and functions that simulates arrays in native NSIS, but has been superseded by the NSISArray plug-in, which is faster, uses less resources and offers more advanced options (below).
nsArray plug-in
A much simpler and smaller DLL than NSISArray (below). Provides less out-of-the-box functionality but is faster and uses less memory.
NsArray.zip (49 KB)
NSISArray plug-in
The plug-in features full dynamic array support for NSIS, though not with native commands. The .dll file handles everything related to the arrays on runtime while the NSISArray script header adds friendly scripting syntax for working with arrays that masks the plug-in's function calls.
NSISArray.zip (99 KB) Also includes documentation and example files
Links
- Forum thread for the plug-in
- Old NSIS script header that uses INI files (6 KB) Old script header