tests/nsis3/share/doc/nsis/Docs/Chapter1.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>

<head>
<title>Introduction to NSIS</title>
<meta name="generator" content="Halibut v1.0 (NSIS Custom Build, SVN:r6192) xhtml-backend" />
<link rel="stylesheet" href="style.css" type='text/css' />
</head>

<body>
<p>Previous | <a href='Contents.html'>Contents</a> | <a href='Chapter2.html'>Next</a></p>
<ul>
<li><a class="btitle" href="Chapter1.html#"><b>Chapter 1: </b>Introduction to NSIS</a></li>
<ul>
<li><a href="Chapter1.html#intro-about">About NSIS</a></li>
<li><a href="Chapter1.html#intro-features">Main Features</a></li>
<li><a href="Chapter1.html#intro-featurelist">Feature List</a></li>
<li><a href="Chapter1.html#intro-unicode">Unicode installers</a></li>
</ul>
</ul>
<a name="intro"></a><h1>Chapter 1: Introduction to NSIS</h1>
<a name="intro-about"></a><h2>1.1 About NSIS</h2>

<p>The installer is your application's first impression. Slow or unsuccessful software installations is one of the most irritating computer problems. A quick and user friendly installer is therefore an essential part of your software product. NSIS (Nullsoft Scriptable Install System) is a tool that allows programmers to create such installers for Windows. It is released under an open source license and is <a href="AppendixI.html#license">completely free for any use</a>.</p>

<p>NSIS creates installers that are capable of installing, uninstalling, setting system settings, extracting files, etc. Because it's based on script files you can fully control every part of your installer. The scripting language supports variables, functions and string manipulation, just like a normal programming language - but designed for the creation of installers. Even with all these features, NSIS is still the smallest installer system available. With the default options, it has an overhead of only 34 KB.</p>

<p>With NSIS 3 you can also create <a href="Chapter1.html#intro-unicode">Unicode installers</a>, targeting all the languages supported by the OS without display issues.</p>
<a name="intro-features"></a><h2>1.2 Main Features</h2>

<p><b>Small overhead size</b></p>

<p>NSIS has been designed to be small, fast and efficient. While other installers often add hundreds of kilobytes or several megabytes to your installer data, a fully featured NSIS installer has a overhead of only 34 KB.</p>

<p><b>Compatible with all major Windows versions</b></p>

<p>You can create a single installer that is compatible with Windows 95, 98, ME, NT4, 2000, XP, 2003, Vista, Server 2008, 7, Server 2008R2, 8, Server 2012, 8.1, Server 2012R2 and Windows 10.</p>

<p><b>Unique compression methods</b></p>

<p>You can choose between three different integrated compression methods (ZLib, BZip2, LZMA). LZMA compression gives better results than any other common compression method. You don't have to use large self-extracting archive modules or other applications, the compression support is included in the 34 KB overhead.</p>

<p><b>Script based</b></p>

<p>Unlike other systems that can only generate installers based on a list of files and registry keys, NSIS has a powerful scripting language. This script language is designed for installers and has commands that help you to perform many installation tasks. You can easily add custom logic and handle different upgrades, version checks and more. On the <a href="http://nsis.sourceforge.net/wiki/">NSIS Wiki</a> you can find a lot more.</p>

<p><b>Multiple languages in one installer</b></p>

<p>One installer can support multiple interface languages. More than 60 translations are already included and you can also create your own language files. RTL (right-to-left) languages such as Arabic and Hebrew are fully supported. Creating a Unicode native installer is also possible for even more supported languages.</p>

<p><b>Many features and checks for the target system</b></p>

<p>The script language provides commands you can use on the target system. From simple features like folder creation and registry editing to text/binary file modification, modification of environment variables and system reboots. By using one of the provided plug-ins you can even call the Windows API directly.</p>

<p><b>Custom dialogs and interfaces</b></p>

<p>You can create custom wizard pages to get user input or integrate configuration options. NSIS includes a classic and modern wizard interface, but it is even possible to create your own custom interface.</p>

<p><b>Plug-in system</b></p>

<p>NSIS can be extended with plug-ins that can communicate with the installer. They can be written in C, C++, Delphi or another language and can be used to perform installation tasks or extend the installer interface. You can use the plug-in with a single line of script code. Plug-ins are also be compressed like other installation data and will only be included when you are using their features.</p>

<p><b>Support for web installation, file patching</b></p>

<p>The NSIS distribution includes a set of plug-ins that allow you to download files from the internet, make internet connections, patch existing files and more.</p>

<p><b>Project integration, different releases and automatic builds</b></p>

<p>The NSIS compiler features a powerful preprocessor. This allows you to easily integrate multiple projects into a single installer or automatically generate installer builds. You can also generate different releases such as lite and full versions.</p>

<p><b>Easy and human readable file formats</b></p>

<p>The NSIS script format and the format used for interface dialogs are easy, documented and humanly readable, so you can edit your files with your favorite editor. This also makes automatic script generation possible.</p>
<a name="intro-featurelist"></a><h2>1.3 Feature List</h2>
<ul>
<li>Generates self contained executable installers</li><li>Support for ZLIB, BZIP2 and LZMA data compression (files can be compressed individually or together)</li><li>Uninstall support (installer can generate an uninstaller)</li><li>Customizable user interface (dialogs, fonts, backgrounds, icons, text, checkmarks, images etc.)</li><li>Classic and Modern wizard interface</li><li>Fully multilingual, support for multiple languages in one installer. More than 60 translations are available, but you can also create your own. Unicode support allowing even more languages.</li><li>Page system: You can add standard wizard pages or custom pages</li><li>User selection of installation components, tree for component selection</li><li>Multiple install configurations (usually Minimal, Typical, Full), and custom configuration</li><li>Installer self-verification using a CRC32 checksum</li><li>Small overhead over compressed data size (34 KB with default options)</li><li>Ability to display a license agreement in text or RTF format</li><li>Ability to detect destination directory from the registry</li><li>Easy to use plug-in system (lots of plug-ins for creation of custom dialogs, internet connections, HTTP downloading, file patching, Win32 API calls etc. are included)</li><li>Installers can be as large as 2GB</li><li>Optional <a href="Chapter4.html#silent">silent</a> mode for automated installations</li><li>A preprocessor with support for defined symbols, macro's, conditional compilation, standard predefines</li><li>A lovely coding experience with elements of PHP and assembly (includes user variables, a stack, real flow control, etc.)</li><li>Installers have their own VMs that let you write code that can support:</li></ul>

<p><ul></p>
<ul>
<li>File extraction (with configurable overwrite parameters)</li><li>File/directory copying, renaming, deletion, searching</li><li>Plug-in DLL calling</li><li>DLL/ActiveX control registration/deregistration</li><li>Executable execution (shell execute and wait options)</li><li>Shortcut creation</li><li>Registry key reading/setting/enumerating/deleting</li><li>INI file reading/writing</li><li>Generic text file reading/writing</li><li>Powerful string and integer manipulation</li><li>Window finding based on class name or title</li><li>User interface manipulation (font/text setting)</li><li>Window message sending</li><li>User interaction with message boxes or custom pages</li><li>Branching, comparisons, etc.</li><li>Error checking</li><li>Reboot support, including delete or rename on reboot</li><li>Installer behaviour commands (such as show/hide/wait/etc)</li><li>User functions in script</li><li>Callback functions for user actions</li></ul>

<p></ul></p>
<ul>
<li>Completely free for any use. See <a href="AppendixI.html#license">license</a>.</li></ul>
<a name="intro-unicode"></a><h2>1.4 Unicode installers</h2>

<p>Starting with NSIS v3.0 you can choose to create Unicode installers by setting the <a href="Chapter4.html#aunicodetarget">Unicode</a> attribute. These installers will not work on Windows 95/98/ME but they will allow you to display your installer in any Unicode language supported by the OS.</p>

<p>When building a Unicode installer NSIS variables can hold Unicode characters (0001-FFFF). There should be no need to modify your existing scripts. If you want to read/write Unicode files, specific instructions have been added to read/write UTF-16LE strings from/to disk.</p>
<p>Previous | <a href='Contents.html'>Contents</a> | <a href='Chapter2.html'>Next</a></p>

<hr />

<address>
</address>
</body>

</html>