Code Monkey home page Code Monkey logo

nsis-ant's Introduction

NSIS Ant Task

Description

Ant task for compiling NSIS scripts on Windows, Linux and Mac systems. Help automate the build process of projects that use the NSIS installer.

To use it, put the NSIS Ant jarfile in an accessible location and add the following to your Ant script:

<taskdef name="nsis" classname="com.danielreese.nsisant.Task">
    <classpath location="nsisant-{version}.jar">
</taskdef>

For more information, please view the API, visit the project homepage or read the MakeNSIS documentation.

Download

Download NSIS Ant 1.3 or the source and Javadoc.

NSIS Element Parameters

  • script (required) — Path of the NSIS script to compile.
  • verbosity — How much logging is written to standard output. Default is 0.
    1. no output
    2. errors only
    3. errors and warnings
    4. errors, warnings and info
    5. all output
  • out — File to which to log the output. Default is standard out.
  • pause — Whether to pause after execution of the script. Default is no.
  • noconfig — Whether to disable inclusion of nsisconf.nsh. Default is no.
  • nocd — Whether to disable changing to the directory containing the script. Default is no.
  • prefix — The prefix to use for the command-line options to makensis. Default is to use '/' on Windows and '-' otherwise.
  • path — The directory containing the makensis executable. Default is to search the PATH.

Nested Elements and Parameters

define

Defines a symbol for the script. Equivalent to the /D (-D on non-Windows platforms) command line parameter of makensis. Multiple instances of this element are permitted. It supports the following parameters:

  • name (required) — The name of the symbol to define.
  • value (required) — The value of the symbol.

scriptcmd

Executes an NSIS command in the script. Equivalent to the /X (-X on non-Windows platforms) command line parameter of makensis. Multiple instances of this element are allowed and are executed in the order specified. It supports the following parameters:

  • cmd (required) — The NSIS command to execute in the script.

Examples

Compile a script using all of the default values.

<nsis script="myproject.nsi"/>

Compile a script with verbose output, logging to a file, and the inclusion of nsisconf.nsh disabled. The VERSION symbol is set to the value "2.1" and the "AutoCloseWindow true" command is executed at the beginning of the script.

<nsis script="myproject.nsi" verbosity="4" out="build.log" noconfig="yes">
    <define name="VERSION" value="2.1"/>
    <scriptcmd cmd="AutoCloseWindow true"/>
</nsis>

License

Copyright © 2004 Wayne Grant. Relicensed with permission.
Copyright © 2005-2010 Daniel Reese

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

nsis-ant's People

Stargazers

 avatar Fredrik Attebrant avatar Dan Reese avatar Robin Harrison avatar Christoph Jahn avatar

Watchers

Dan Reese avatar  avatar

Forkers

rml00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.