Nullsoft Scriptable Install System

Материал из Википедии — свободной энциклопедии
Это старая версия этой страницы, сохранённая Pini-pini (обсуждение | вклад) в 07:57, 14 января 2007 (Новая: {{Infobox_Software |name = Nullsoft Scriptable Install System |screenshot = 300px |caption = NSIS инсталлятор |developer = Nullsoft |latest_release...). Она может серьёзно отличаться от текущей версии.
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску
Nullsoft Scriptable Install System
Логотип программы Nullsoft Scriptable Install System
NSIS инсталлятор
Тип Инструментальные средства Программирования
Разработчик Nullsoft
Написана на C++[2], Си[2], Nullsoft Scriptable Install System[2] и PHP[2]
Операционные системы Windows, POSIX
Первый выпуск 31 июля 2000[1]
Последняя версия 2.23 (13 Января, 2007)
Репозиторий sourceforge.net/p/nsis/c…
github.com/kichik/nsis
Лицензия zlib/libpng license
Сайт nsis.sf.net
Логотип Викисклада Медиафайлы на Викискладе

Nullsoft Scriptable Install System (NSIS), is an open source, script-driven Windows installation system with minimal overhead backed by Nullsoft, the creators of Winamp. NSIS has risen to popularity as a widely used alternative to commercial products like InstallShield.

История

NSIS was created to distribute Winamp. It is based on a previous Nullsoft product, PiMP (plugin Mini Packager), and is also known as SuperPiMP. After version 2.0a0, the project was moved to SourceForge where developers outside of Nullsoft started working on it on a regular basis. NSIS 2.0 was released approximately two years later.

NSIS version 1 is in many ways similar to the classic Windows Installer, but it is more easily scriptable and supports more compression formats. NSIS version 2 has a new streamlined graphical user interface, supports LZMA compression, multiple languages, and an easy plugin system.

POSIX

Version 2.01 was the first version to compile on POSIX platforms out of the box. This allows cross-compilation of Windows installers on Linux and FreeBSD without the usage of Wine. Currently, the only supported hardware platform is x86.

ПОНЯТИЯ

Скрипт

The NSIS compiler program makensis compiles scripts like the following example into executable installation programs. Each line in the script contains a single command.

# Пример скрипта
Name "Example1"
OutFile "example1.exe"
InstallDir "$PROGRAMFILES\Example1"
Page Directory
Page InstFiles
Section
  SetOutPath $INSTDIR
  File ..\makensis.exe
SectionEnd

Modern User Interface

NSIS 1.98

Version 2.0 introduced a new optional streamlined graphical user interface called Modern UI (MUI). The MUI has a wizard-like interface. It supports a welcome page, finish page, language selection dialog, description area for components, and greater customization options than the old user interface.

# Пример скрипта с Modern UI
!include MUI.nsh
Name "Example 2"
OutFile Example2.exe
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "license.rtf"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "French"
Section "Extract makensis"
 SetOutPath $INSTDIR
 File ..\makensis.exe
SectionEnd

Plugins

NSIS can be extended with plugins that can communicate with the installer. Plugins can be written in C, C++, and Delphi, and can be used to perform installation tasks or extend the installer interface. A plugin can be called with a single line of NSIS code.

Several plugins come with the NSIS package that permit the installer to display a splash screen, display a custom page, display an image on the background, download files from a website, perform mathematical operations, patch files and more.

Other plugins are available online, including ZipDLL, and a Python plugin.

Особенности

Программы, использующие NSIS

Графические интерфейсы

NSIS projects can be configured by simply editing text files. However, several third parties provide editing software:

  • EclipseNSIS is a module for the Eclipse platform. It allows NSIS scripts to be edited, compiled and validated.
  • HM NIS EDIT
  • NSIS UltraModern User Interface is a new interface with a style like the most recent installers. The UltraModern interface also features new pages (Confirm, Information, Abort, Modify/Repair/Remove, Update/Remove, Setup Type, Additional Tasks, Serial Number...).

NSIS Media Malware

A pretty wide-spread malware company has named itself NSIS Media, probably to appear legitimate. Sadly, their scheme reflects badly on the reputation of NSIS even though the two are not related by anything but name. A few users allege that every installer built with NSIS contains this malware, when in fact it's just a matter of choosing a reliable download source, as with everything downloaded from the internet.

Разные ссылки

  1. NSIS version history
  2. 1 2 3 4 https://www.openhub.net/p/nsis/analyses/latest/languages_summary