Git Product home page Git Product logo

nsis-extension's Introduction

Use forked version

Please use this forked repo: https://github.com/dev-maxima/nsis-extension This repo is no longer active

The new version is here: https://marketplace.visualstudio.com/items?itemName=bizeta.nsis-task


VSTS Extension

Nsis build extension for VSTS

This extension can be used to build nsis script or to make nsis available for other tasks (as an environment variable).

Nsis version used is version 3.03

Usage

  • Go to VSTS Marketplace and install the extension
  • In your build definition add the task "Nsis"
  • Either select your nsi script (and build arguments: http://nsis.sourceforge.net/Docs/Chapter3.html#usagereference)
  • Or just include NSIS as an environnement variable called NSIS_EXE that you can use in the following tasks.

There is also an option called "Include additional plugins". If you check this option, the content of the folder nsis/plugins will be copied to the nsis plugin folder and thos plugins will be made available to you nsis script.

To test that the task works properly, you can download install.nsi and use it as a test script.

Plugins

The nsis/plugins folder contains multiple plugins that were found on nsis web site:

  • SimpleSC NSIS Simple Service Plugin (license MPL / LGPL)
  • Services2, another plugin to manage services Examples:
services2::IsServiceRunning "w3svc"
Pop $0
  ${If} $0 == "Yes"
...
  ${Else}
...
  ${EndIf}

services2::IsServiceInstalled "w3wp" work the same Also:

services2::SendServiceCommandWait "start" "w3wp" "120"
  Pop $0
  ${If} $0 == "Ok"
...
  ${Else}
  ...
  ${Endif}
  • there are other plugins to be documented

Availability

This extension is publicly available on VSTS Marketplace: https://marketplace.visualstudio.com/items?itemName=ThomasP.nsis-task

It is build in VSTS using VSTS Developer Tools Build Task (https://marketplace.visualstudio.com/items?itemName=ms-devlabs.vsts-developer-tools-build-tasks). Here is the status: Build status

The build number is automatically incremented on each commit by the VSTS Build task by a pattern like "0.2.$(Build.BuildId)". See https://www.visualstudio.com/en-us/docs/build/define/variables#predefined-variables for reference.

License

This extension is published under MIT license. See license file.

nsis-extension's People

Contributors

tomap avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.