| 1 |
INSTALLING NSIS |
| 2 |
~~~~~~~~~~~~~~~ |
| 3 |
|
| 4 |
This is a trimmed version of Appendix "Building NSIS" of the documentation. |
| 5 |
|
| 6 |
- Requirements |
| 7 |
|
| 8 |
* Python version 2.7 and above (http://www.python.org/) |
| 9 |
* SCons version 1.2.0 and above (http://www.scons.org/) |
| 10 |
* zlib version 1.2.3 and above (http://www.zlib.net/) |
| 11 |
* C compiler |
| 12 |
|
| 13 |
- Optional Tools |
| 14 |
|
| 15 |
* HTML Help Workshop for CHM documentation (http://msdn.microsoft.com/) |
| 16 |
* Cross compiler on POSIX platforms, i.e. MinGW (http://www.mingw.org/) |
| 17 |
* wxWidgets 2.8 for NSIS Menu (http://www.wxwidgets.org) |
| 18 |
|
| 19 |
- Preparation |
| 20 |
|
| 21 |
* Unpack the zip archive of the downloaded zlib compiled DLL package |
| 22 |
to a folder of your choice, e.g. C:\Dev\zlib-1.2.4 and set the |
| 23 |
ZLIB_W32 environment variable, type: |
| 24 |
|
| 25 |
set ZLIB_W32=C:\Dev\zlib-1.2.4 |
| 26 |
|
| 27 |
* See Contrib\NSIS Menu\wx\build.txt for wxWidgets build steps. |
| 28 |
Optionally, you can skip this by using: |
| 29 |
|
| 30 |
scons SKIPUTILS="NSIS Menu" |
| 31 |
|
| 32 |
- For Unicode version of NSIS |
| 33 |
|
| 34 |
* type: |
| 35 |
scons UNICODE=yes |
| 36 |
|
| 37 |
- Installing |
| 38 |
|
| 39 |
* type: |
| 40 |
|
| 41 |
scons PREFIX="C:\Program Files\NSIS" install |
| 42 |
|
| 43 |
- More options |
| 44 |
|
| 45 |
* For build options, type: |
| 46 |
|
| 47 |
scons -h |
| 48 |
|
| 49 |
* For SCons options, type: |
| 50 |
|
| 51 |
scons -H |
| 52 |
|
| 53 |
- Special cases |
| 54 |
|
| 55 |
* If using the Microsoft Visual C++ Toolkit 2003 and Platform SDK, |
| 56 |
add MSTOOLKIT=yes to the build command line. For example: |
| 57 |
|
| 58 |
scons MSTOOLKIT=yes PREFIX=C:\NSIS install |
| 59 |
|
| 60 |
If path problems occur, try: |
| 61 |
|
| 62 |
set MSSDK=C:\Path\To\Platform SDK |
| 63 |
set VCToolkitInstallDir=C:\Path\To\VCToolkit |
| 64 |
scons MSTOOLKIT=yes |
| 65 |
|
| 66 |
* If a cross compiler is not available on POSIX, use: |
| 67 |
|
| 68 |
scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all |
| 69 |
NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip |
| 70 |
install-compiler |
| 71 |
|
| 72 |
This should only build makensis and install it to the directory where |
| 73 |
a precompiled package, such as the nightly build or a zipped release |
| 74 |
version (nsis-x.xx.zip), is extracted. |
| 75 |
|
| 76 |
* Options for POSIX installs |
| 77 |
|
| 78 |
PREFIX: defaults to /usr/local |
| 79 |
PREFIX_BIN: Where to put native binaries. Defaults to $PREFIX/bin/ |
| 80 |
PREFIX_CONF: Where to put the config file. Defaults to $PREFIX/etc/ |
| 81 |
PREFIX_DATA: Where to put the plugins, stubs, etc. Defaults to $PREFIX/share/nsis/ |
| 82 |
PREFIX_DOC: Where to put the docs and examples. Defaults to $PREFIX/share/doc/nsis/ |
| 83 |
PREFIX_DEST: The install root Useful for packagers. Defaults to the root directory. |
| 84 |
PREFIX_PLUGINAPI_INC: Where to put the plugin api headers. Defaults to not installed. |
| 85 |
PREFIX_PLUGINAPI_LIB: Where to put the plugin api static lib. Defaults to not installed. |
| 86 |
|
| 87 |
- Problems |
| 88 |
|
| 89 |
* Get help in the forum: |
| 90 |
http://forums.winamp.com/forumdisplay.php?forumid=65 |
| 91 |
|
| 92 |
* Report bugs in the bug tracker: |
| 93 |
http://sourceforge.net/tracker/?group_id=22049&atid=373085 |