Debian Codegraph @

Docs/src/intro.but

raw
1 \C{intro} Introduction to NSIS
2
3 \H{intro-about} About NSIS
4
5 The installer is your application's first impression.
6 Slow or unsuccessful software installations is one of the most irritating computer problems.
7 A quick and user friendly installer is therefore an essential part of your software product.
8 NSIS (Nullsoft Scriptable Install System) is a tool that allows programmers to create such installers for Windows.
9 It is released under an open source license and is \R{license}{completely free for any use}.
10
11 NSIS creates installers that are capable of installing, uninstalling, setting system settings, extracting files, etc.
12 Because it's based on script files you can fully control every part of your installer.
13 The scripting language supports variables, functions and string manipulation, just like a normal programming language - but designed for the creation of installers.
14 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.
15
16 \H{intro-features} Main Features
17
18 \\<b\\>Small overhead size\\</b\\>
19
20 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.
21
22 \\<b\\>Compatible with all major Windows versions\\</b\\>
23
24 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.
25
26 \\<b\\>Unique compression methods\\</b\\>
27
28 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.
29
30 \\<b\\>Script based\\</b\\>
31
32 Unlike other systems that can only generate installers based on a list of files and registry keys, NSIS has a powerful \R{tutscriptfiles}{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 \W{https://nsis.sourceforge.io/wiki/}{NSIS Wiki} you can find a lot more.
33
34 \\<b\\>Multiple languages in one installer\\</b\\>
35
36 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 \R{intro-unicode}{Unicode native installer} is also possible, targeting all the languages supported by the OS without display issues.
37
38 \\<b\\>Many features and checks for the target system\\</b\\>
39
40 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.
41
42 \\<b\\>Custom dialogs and interfaces\\</b\\>
43
44 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.
45
46 \\<b\\>Plug-in system\\</b\\>
47
48 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.
49
50 \\<b\\>Support for web installation, file patching\\</b\\>
51
52 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.
53
54 \\<b\\>Project integration, different releases and automatic builds\\</b\\>
55
56 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.
57
58 \\<b\\>Easy and human readable file formats\\</b\\>
59
60 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.
61
62 \H{intro-featurelist} Feature List
63
64 \b Generates self contained executable installers
65
66 \b Support for ZLIB, BZIP2 and LZMA data compression (files can be compressed individually or together)
67
68 \b Uninstall support (installer can generate an uninstaller)
69
70 \b Customizable user interface (dialogs, fonts, backgrounds, icons, text, checkmarks, images etc.)
71
72 \b Classic and Modern wizard interface
73
74 \b 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.
75
76 \b Page system: You can add standard wizard pages or custom pages
77
78 \b User selection of installation components, tree for component selection
79
80 \b Multiple install configurations (usually Minimal, Typical, Full), and custom configuration
81
82 \b Installer self-verification using a CRC32 checksum
83
84 \b Small overhead over compressed data size (34 KB with default options)
85
86 \b Ability to display a license agreement in text or RTF format
87
88 \b Ability to detect destination directory from the registry
89
90 \b 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)
91
92 \b Installers can be as large as 2GB
93
94 \b Optional \R{silent}{silent} mode for automated installations
95
96 \b A preprocessor with support for defined symbols, macro's, conditional compilation, standard predefines
97
98 \b A lovely coding experience with elements of PHP and assembly (includes user variables, a stack, real flow control, etc.)
99
100 \b Installers have their own VMs that let you write code that can support:
101
102 \\<ul\\>
103
104 \b File extraction (with configurable overwrite parameters)
105
106 \b File/directory copying, renaming, deletion, searching
107
108 \b Plug-in DLL calling
109
110 \b DLL/ActiveX control registration/deregistration
111
112 \b Executable execution (shell execute and wait options)
113
114 \b Shortcut creation
115
116 \b Registry key reading/setting/enumerating/deleting
117
118 \b INI file reading/writing
119
120 \b Generic text file reading/writing
121
122 \b Powerful string and integer manipulation
123
124 \b Window finding based on class name or title
125
126 \b User interface manipulation (font/text setting)
127
128 \b Window message sending
129
130 \b User interaction with message boxes or custom pages
131
132 \b Branching, comparisons, etc.
133
134 \b Error checking
135
136 \b Reboot support, including delete or rename on reboot
137
138 \b Installer behaviour commands (such as show/hide/wait/etc)
139
140 \b User functions in script
141
142 \b Callback functions for user actions
143
144 \\</ul\\>
145
146 \b Completely free for any use. See \R{license}{license}.
147
148 \H{intro-unicode} Unicode installers
149
150 Starting with NSIS v3.0 you can choose to create Unicode installers by setting the \R{aunicodetarget}{Unicode} attribute.
151 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.
152
153 When building a Unicode installer NSIS variables can hold Unicode characters (0001-FFFF). There should be no need to modify your existing scripts.
154 If you want to read/write Unicode files, specific instructions have been added to read/write UTF-16LE strings from/to disk.