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
0
votes
1 answer

NSIS How to copy and paste text by inserting hyphens or adding text boxes in a text box, separated by fieldnum

There is a problem in making it easy for users to pass parameters to the program using the UI of NSIS text box. It can be implemented in C # Winform, but it is not familiar with how to use it in NSIS. I'd like to get help in one of two ways. 1. ONE…
SHO
  • 25
  • 8
0
votes
1 answer

How to get the subkey from the key in the registry tree using NSIS?

From the below registry tree structure, how to get and show the the subkey (3.1.0) from the below path: SOFTWARE\WOW6432Node\APE\PowerChart\ HKLM SOFTWARE APE PowerChart 3.1.0
sas
  • 19
  • 4
0
votes
1 answer

How to limit the number of text box characters in NSIS

I want to limit the number of characters in each text box to 4 digits. It can be implemented in C # Winform, but it is not familiar with how to use it in NSIS. Attempted action: I put the label and I am guiding the input to four digits. But that's…
SHO
  • 25
  • 8
0
votes
1 answer

Is there any way that we can read the registry version number key in a generic way using NSIS?

Using NSIS when installing the newer version of the software, from specific older version no (for eg., 3.01.00) i am upgrading it to the newer version automatically by uninstalling the older version and installing newer version like as shown…
David
  • 9
  • 5
0
votes
1 answer

Does NSIS support external files?

I basicaly want to have an external very large (bigger than 2gb) file next to my setup executable. To realize this, in the script I have tried the following: File "$EXEDIR/verybigfile" However, I got the following error: File: "$EXEDIR/verybigfile"…
fatihk
  • 7,789
  • 1
  • 26
  • 48
0
votes
1 answer

How to encode string in NSIS to UTF-16LE format?

Hi I'm trying to replicate this code in Python for NSIS installer. m = hashlib.md5("C:\PROGRAM FILES\My Program".encode('utf-16LE')) It basically encode the string , then apply MD5 hash to it. I have found the MD5 hash plug-in for NSIS. However, I…
Kevin
  • 21
  • 1
  • 3
0
votes
1 answer

How to include a gigantic 14GB+ folder in the NSIS installer of an Electron app?

I have an app made using Electron. I am creating the NSIS installer for the app using Electron Builder. The Electron app has a dependency to something similar to a videogame (lets call it a videogame but it's not a videogame) that is 14GB+ folder…
Syed Aman
  • 39
  • 2
0
votes
2 answers

When installing the software that was developed using NSIS, how should I throw a pop-up message if installing in server operating systems

When installing the software that was developed using NSIS, how should I throw a pop-up message if installing in server operating systems. Below are the unsupported operating systems. In those when installing the software i should show the popup…
David
  • 9
  • 5
0
votes
1 answer

What are the risks of doing my own cross platform (Win + OSX) installer?

I have a quite complicated build process involving different directories (for plugins) ; currently using NSIS on Windows and PackageMaker on OSX but have issues improving them as my install / uninstall process is getting more complex with time. The…
ttoinou
  • 13
  • 3
0
votes
2 answers

How to sign code automatically without installing anything on any OS?

We've setup a process to manually sign our code using the SIGNTOOL from Microsoft. We generate our installation package using NSIS and it's time to start automating the code signing process as well as part of the NSIS scripts. We do not use windows…
gunslingor
  • 1,358
  • 12
  • 34
0
votes
1 answer

How to get missing dll file error callback in nsh code in run time (NSIS)

I am creating an installer for my software using NSIS. My software is dependent on Microsoft c++ redistribution software. So while installing my software if user system has some .dll files missing/corrupted then the installer shows error. I want…
Ankesh kumar Jaisansaria
  • 1,563
  • 4
  • 26
  • 44
0
votes
2 answers

How can I sign the files using NSIS?

How can I sign the files using NSIS? We changed WIX installer to NSIS. Earlier in the WIX installer it was used like as shown below in the .xml file to sign the files.
David
  • 9
  • 5
0
votes
2 answers

NSIS Custom Page MessageBox jump to next page

Page Custom ModePageCreate ModePageLeave Function ModePageLeave MessageBox MB_YESNO "Installer is now going to uninstall existing software and reinstall software. Database files will be removed. Please confirm to proceed!" IDYES true IDNO false …
Ankesh kumar Jaisansaria
  • 1,563
  • 4
  • 26
  • 44
0
votes
1 answer

NSIS nsi script error :- !insertmacro: macro named "SECTION_BEGIN" not found

In nsi script with MUI2.nsh Code:- !macro SECTION_BEGIN Section "" Call zip2exe.SetOutPath !macroend !macro SECTION_END SectionEnd !macroend But If I want to define two or more section then in that case how to incorporate SECTION_BEGIN…
Ankesh kumar Jaisansaria
  • 1,563
  • 4
  • 26
  • 44
0
votes
1 answer

NSIS: get current user before RequestExecutionLevel admin

My installer run in all users, and it saves user information in the AppData folder. The problem is that, when the installation is finished, an executable is launched by means of an Exec and it is launched as the administrator user, so all the…
TrainingJ
  • 23
  • 3
1 2 3
99
100