Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
/ nsis-extension Public archive

Nsis build extension for VSTS

License

Notifications You must be signed in to change notification settings

tomap/nsis-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Nsis build extension for VSTS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published