Nullsoft Install System

NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers.

Download the latest version from the project homepage.

The package supports installing on 32-bit and 64-bit Windows.

!!! This package requires wpkg.js 1.2.1-RC20 or higher !!!

<?xml version="1.0" encoding="UTF-8"?>

<packages
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

    <package id="NSIS"
            name="Nullsoft Install System"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <variable name="PKG_VERSION"        value="2.46" />
        <variable name="PKG_NAME"           value="NSIS" />
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\NSIS"      architecture="x86"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\NSIS" architecture="x64"/>

        <check type="uninstall" condition="versiongreaterorequal" path="Nullsoft Install System"        value="%PKG_VERSION%" />
        <check type="file"      condition="sizeequals"            path="%PKG_DESTINATION%\NSIS.exe"     value="702976" />
        <check type="file"      condition="sizeequals"            path="%PKG_DESTINATION%\makensis.exe" value="496128" />

        <install cmd='"%SOFTWARE%\NSIS\nsis-%PKG_VERSION%-setup.exe" /S' />

        <upgrade include="install" />

        <remove cmd='"%PKG_DESTINATION%\uninst-nsis.exe" /S' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninst-nsis.exe" ping -n 15 localhost &gt;NUL' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninst-nsis.exe" exit 999' />
    </package>
</packages>


Silent install options

A lot of windows software use the Nullsoft Install System, you can use the silent install options to write WPKG scripts.

See http://nsis.sourceforge.net/Docs/Chapter3.html#3.2

The main available options are :

/S runs the installer or uninstaller silently

/D sets the default installation directory

/? to get available installer options