Special Builds: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Created page.)
 
No edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
You can recompile NSIS with a custom configuration file (exehead\config.h) to remove features you are not using (to decrease the overhead size), to enable features that are not enabled by default (like advanced logging) or to change advanced settings of compression methods and variables.
<!-- This is a NSIS website page / sub-page of [[Download]] -->
You can recompile NSIS with a custom configuration to remove features you are not using (to decrease the overhead size), to enable features that are not enabled by default (like advanced logging) or to change advanced settings of compression methods and variables. For available configurations, use scons --help before building.


For the users without a compiler, some special builds of makensis.exe are provided here. These builds are only compatible with NSIS 2.10 ([http://sourceforge.net/project/showfiles.php?group_id=22049&package_id=15374 older versions]).
For the users without a building environment, some special builds of makensis.exe are provided here. These builds are only compatible with NSIS {{NSISVersion}} ([http://sourceforge.net/project/showfiles.php?group_id=22049&package_id=15374 older versions]). Always make sure you extract the stubs files as well as they are part of makensis.


== No solid compression for BZIP2 and LZMA ==
== Advanced logging ==
 
This build includes advanced logging features that allow you create an exact log of all installer actions (see the [http://nsis.sourceforge.net/Docs/ users manual] for details). You can use it if you want testers or users to send installation reports.
 
[http://prdownloads.sourceforge.net/nsis/nsis-{{NSISVersion}}-log.zip?download Download advanced logging build]


This special build is no longer provided. You can now simply not use the /SOLID switch for the SetCompressor command.
To install extract the zip file to the folder where you installed NSIS. Usually that would be <code>C:\Program Files\NSIS</code> or <code>C:\Program Files (x86)\NSIS</code>.


== Advanced logging ==
{{#ifeq:{{NSISIsPreRelease}}|yes|
[http://prdownloads.sourceforge.net/nsis/nsis-{{NSISPreVersion}}-log.zip?download Download advanced logging build for {{NSISPreVersion}}]
}}
 
=== Build Command ===


This build includes advanced logging features that allow you create an exact log of all installer actions (see the [http://nsis.sourceforge.net/Docs/ users manual] for details). You can use it if you want testers or users to send installation reports.
If you want to build your own from [[Development Files|source]], use:


[http://prdownloads.sourceforge.net/nsis/nsis-2.10-log.zip?download Download]
  scons NSIS_CONFIG_LOG=yes PREFIX=C:\somewhere install-compiler install-stubs


== Large strings ==
== Large strings ==
Line 17: Line 26:
If you are working with large strings use this build which has a maximum string length of 8192 bytes instead of the default of 1024 bytes.
If you are working with large strings use this build which has a maximum string length of 8192 bytes instead of the default of 1024 bytes.


[http://prdownloads.sourceforge.net/nsis/nsis-2.10-strlen_8192.zip?download Download]
[http://prdownloads.sourceforge.net/nsis/nsis-{{NSISVersion}}-strlen_8192.zip?download Download large strings build]
 
To install extract the zip file to the folder where you installed NSIS. Usually that would be <code>C:\Program Files\NSIS</code> or <code>C:\Program Files (x86)\NSIS</code>.
 
{{#ifeq:{{NSISIsPreRelease}}|yes|
[http://prdownloads.sourceforge.net/nsis/nsis-{{NSISPreVersion}}-strlen_8192.zip?download Download large strings build for {{NSISPreVersion}}]
}}
 
=== Build Command ===
 
If you want to build your own from [[Development Files|source]], use:
 
  scons NSIS_MAX_STRLEN=8192 PREFIX=C:\somewhere install-compiler install-stubs

Latest revision as of 18:17, 19 July 2019

You can recompile NSIS with a custom configuration to remove features you are not using (to decrease the overhead size), to enable features that are not enabled by default (like advanced logging) or to change advanced settings of compression methods and variables. For available configurations, use scons --help before building.

For the users without a building environment, some special builds of makensis.exe are provided here. These builds are only compatible with NSIS 3.10 (older versions). Always make sure you extract the stubs files as well as they are part of makensis.

Advanced logging

This build includes advanced logging features that allow you create an exact log of all installer actions (see the users manual for details). You can use it if you want testers or users to send installation reports.

Download advanced logging build

To install extract the zip file to the folder where you installed NSIS. Usually that would be C:\Program Files\NSIS or C:\Program Files (x86)\NSIS.


Build Command

If you want to build your own from source, use:

 scons NSIS_CONFIG_LOG=yes PREFIX=C:\somewhere install-compiler install-stubs

Large strings

If you are working with large strings use this build which has a maximum string length of 8192 bytes instead of the default of 1024 bytes.

Download large strings build

To install extract the zip file to the folder where you installed NSIS. Usually that would be C:\Program Files\NSIS or C:\Program Files (x86)\NSIS.


Build Command

If you want to build your own from source, use:

 scons NSIS_MAX_STRLEN=8192 PREFIX=C:\somewhere install-compiler install-stubs