Questions tagged [nsis]

This tag is used for questions about the open source Nullsoft Scriptable Install System (NSIS) setup generator.

Details

Being a user's first experience with your product, a stable and reliable installer is an important component of succesful software. With NSIS you can create such installers that are capable of doing everything that is needed to setup your software.

NSIS is script-based and allows you to create the logic to handle even the most complex installation tasks. Many plug-ins and scripts are already available: you can create web installers, communicate with Windows and other software components, install or update shared components and more

Getting Started

IDE

Plugins

NSIS comes with a variety of plugins

Plugins are usually one .dll file and an .nsh file. To Install Plugins you need to copy the dll to C:\Program Files\NSIS\Plugins and the nsh file to C:\Program Files\NSIS\Include
See : How do I install a Plugin

Useful Plugins

Tips

  1. You can use the the LogicLib which comes as part of the installation to use if conditions in your script (this is not directly available). All you need to do is:

    !include 'LogicLib.nsh'
    

    And then:

    # ...
    ${If} $0 == "hello"
        DetailPrint "world"
    ${Endif}
    

    See this for details.

2580 questions
5
votes
1 answer

NSIS - force user to select a different directory

So far I've figured out how to detect a previous installation of my software by reading registry keys, and testing for whether the directory exists. (Both are well documented in the NSIS help file). Now I want to force the user to specify a…
Rex
  • 801
  • 1
  • 17
  • 26
5
votes
1 answer

How do I conditionally compile an NSIS script based on commandline parameters?

I'm trying to generalize a setup file by externally passing the version number. I want to be able to do this: makensis myscript.nsi parameter=value and then read the parameter within the script, so that using the same script I can generate…
Rex
  • 801
  • 1
  • 17
  • 26
5
votes
1 answer

nsis - customize button text on MessageBox

I need to customize the buttons' labels on MessageBox MB_YESNOCANCEL. E.g. instead of 'Cancel' I need to have 'Resign' label. Does anybody know how it can be done?
Opal
  • 81,889
  • 28
  • 189
  • 210
5
votes
1 answer

Based on my requirements, should I use NSIS or jprofiler/install4j

We have a web application that we need to make easier to deploy for our clients. The current workflow for a fresh install: Ensure there is a JRE on machine (32 or 64bit) Install Tomcat (32 or 64bit) Create a database in Oracle or SQL Server (we…
jakc
  • 1,161
  • 3
  • 15
  • 42
5
votes
2 answers

TeamCity - How to create an installer package?

I'm pretty new with TeamCity but have 2-3 years experience with CC.NET-t. I'm familiar with MSBuild but maybe TeamCity has other ways to build things. I see that TeamCity has a nice UI and great plug-in framework. But I have no idea how can I…
boj
  • 10,935
  • 5
  • 38
  • 57
5
votes
7 answers

NSIS Eclipse plugin not working

I want to use the NSIS eclipse plugin under eclipse indigo and windows 7. I installed the NSIS plugin in eclipse with the eclipse plugin manager. When I click File->New->Other->EclipseNSIS_Script I get the error: EclipseNSIS only supports the…
juergen d
  • 201,996
  • 37
  • 293
  • 362
5
votes
2 answers

NSIS: Find and download .Net Version

How can I get the version of .NET with NSIS? And if I don't have the necessary version, it redirects me to a site to download it. I've found some solutions to this, but they usually have some hard coded stuff (e.g. dozens of specific links). Is…
Artur Carvalho
  • 6,901
  • 10
  • 76
  • 105
5
votes
2 answers

electron updater notify for new release but do not update or download new release in windows

electron updater 4.2.0 package do not download new release but can detect it This is a private repository on github new releases successfully send to github In package.json: "build": { "appId": "com.myApp.ID", "npmRebuild": false, "win": { …
Lilian Bideau
  • 186
  • 2
  • 15
5
votes
3 answers

Auto-installing a google chrome extension won't work !

I am working on a job in relation with this page http://code.google.com/chrome/extensions/external_extensions.html I wrote a NSIS script that is trying to auto install a chrome extensions. (Why ? because our extension can be offered with another…
5
votes
4 answers

Electron auto update fails silently when installing update on Windows

I have an electron app which uses electron-builder for building, packing & publishing the app. I have the following auto-update code: autoUpdater.logger = log; autoUpdater.logger.transports.file.level = "info"; autoUpdater.autoDownload =…
Katie
  • 1,498
  • 1
  • 15
  • 33
5
votes
1 answer

How do I capture the results of a YESNOCANCEL MessageBox without gotos/labels in NSIS installer scripting?

I would like to know how to use a YESNOCANCEL MessageBox in conjunction with IF logic from LogicLib.nsh in NSIS installer scripting to avoid having to use labels and gotos. Is there any way to capture the result of a MessageBox in a variable of some…
Brandon
  • 261
  • 1
  • 8
  • 17
5
votes
3 answers

How to check Visual C++ 2017 redistributable x86 is installed or not using NSIS

Before installing the software, I need to check if the Visual C++ 2017 redistributable(x86) is installed or not. If it is not installed, while installing the software first I can install the redistributable executable. When i installed it manually…
bhavya
  • 73
  • 1
  • 6
5
votes
2 answers

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is…
aardvarkk
  • 14,955
  • 7
  • 67
  • 96
5
votes
2 answers

NSIS CreateShortCut: Shortcuts order on Start menu

I am using NSIS to create an installer for one of my apps, and I am using this code to create shortcuts on the start menu: ;create start-menu items CreateDirectory "$SMPROGRAMS\myFolder" CreateShortCut "$SMPROGRAMS\myFolder\app.lnk"…
Meredith
  • 920
  • 7
  • 16
  • 31
5
votes
1 answer

How to pass command line arguments when run after install with electron-builder NSIS installer

With electron-builder NSIS installer we're able to create an executable installer which launches the installed electron app immediately after the install is finished. My question is is there a way to pass any command line parameters the installer…
George S.
  • 613
  • 5
  • 11