Nullsoft Install System

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

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"?>

        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

    <package id="NSIS"
            name="Nullsoft Install System"

        <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' />

Silent install options[edit]

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


The main available options are :

/S runs the installer or uninstaller silently

/D sets the default installation directory

/? to get available installer options