Difference between revisions of "Nullsoft Install System"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Initial page)
(No difference)

Revision as of 17:35, 8 October 2011

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>