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

Trigger a script at the end of .Appx package installation [UWP]

I have a .Appx package made out of a setup I made using NSIS. I want to know if there is a way I can trigger installation of shortcuts of executable(s) of my package at developer-defined places. We can do it in an NSIS package by writing a .nsi…
0
votes
1 answer

NSIS page with a list of opened browser windows

Is there any standard way (or existing plugin) which allows to create a page in NSIS installer package and display there all existing browser windows. Something with the possibility of closing all browsers before proceeding with an…
Volodymyr K.
  • 669
  • 8
  • 20
0
votes
1 answer

How can I kill System Tray icon application?

I need to stop and kill a system tray icon application in NSIS scriptes ? KillProcDLL::KillProc "xyz.exe" KillProcDLL::KillProc "xyz" nsisDDE::Execute "xyz-{D30034F8-AB97-419F-B3B6-FA5BB8CD926F}" "[Quit]" nsisDDE::Execute "xyz"…
Khayralla
  • 177
  • 1
  • 4
  • 15
0
votes
0 answers

NSIS : Delete files from Hidden folder (from start menu)

I have written code script for uninstall of my application, somehow uninstall.exe is getting deleted. so script is not able to uninstall product . Now I want to write a script to delete folders directly from directory, From 1. Installation…
Ram
  • 233
  • 1
  • 17
0
votes
1 answer

How to read into byte array file contents and then update them and write into another file?

I want in nsis to be able to read from file contents into byte array, update the array and then write the contents of the buffer into another file. My Code System::Call "kernel32::GetFileSize(i$0,i0)i.s" Pop $7 System::Alloc $7 ;Reading file…
MickCic
  • 145
  • 2
  • 10
0
votes
1 answer

NSIS window disappear

I have tried a lot of possibility with this code but it doesn't work. I need to check a VPN connection. If I run the code firs time it works, but if I don't restart the program and push the button secondly then the program just disappear. Any idea…
604
  • 1
  • 1
0
votes
1 answer

NSIS dism enable NetFx3 error 11 windows 2012

I want to enable .net3.5 in nsis installer in windows 2012. I used next code: nsExec::ExecToStack 'cmd /c %windir%\system32\dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /All' But it return error 11.enter image description here my dism log…
0
votes
1 answer

How to set the default icon for apps in registry using Exe?

I created the installer using NSIS. Everything working fine but default icon not setting to the particular files. WriteRegStr HKCR "Myapp\DefaultIcon" "" "$INSTDIR\Myexe,1" I need to set default icon by using my Exe not by using icon file
0
votes
0 answers

NSIS cancel messagebox with bad content

I have page where I download some files. Sometimes, when I press cancel in this page, I see MessageBox with bad text, look likes some numbers or some parts of word. But I used MUI_ABORTWARNING_TEXT. Why I see bad text instead my…
0
votes
1 answer

NSIS: How to get a finish- and a next-button?

I use the MUI_PAGE_INSTFILES. And this page has normally a finish-button, but I have a custom page after it. But I want that you could still finish the installer before the custom page and the next page is only optional. I could also show more code…
ikreb
  • 2,133
  • 1
  • 16
  • 35
0
votes
1 answer

NullSoft Installer - Upgrade app.config when upgrading application

I am using NSIS to install my application and I am trying to prepare ahead of time for future updates. Normally with ClickOnce, I'd be able to call the Upgrade() method to update the user's settings by accessing their settings from the previous…
user
  • 16,429
  • 28
  • 80
  • 97
0
votes
0 answers

Communicate with api server using nsis

I tried nsis for the first time. You want to send a post to the api server using nsis. I used the inetc module, the InetLoad module, and the nsJSON module All communication is not possible. Help me, I do not feel at all. For example, if you have…
이규진
  • 1
  • 1
0
votes
1 answer

NSIS: Getting the index of a selected ListBox Item

I'm dynamically filling a Listbox created with ${NSD_CreateListBox}. In a function I'm able to get the selected text, but would it be possible to get an index of the selected item? ${NSD_LB_GetSelection} $hCtl_parallelInstall_Installed $0 is what…
Markus Heckmann
  • 307
  • 1
  • 6
0
votes
1 answer

How to cancel NSIS Installer after executed powershell script was canceled?

For my software suite I created an installer with NSIS. This installer includes a powershellscript with a GUI. I want to cancel the installation process after the user has clicked the cancelbutton in the powershell gui. The script creates a…
0
votes
1 answer

Prevent NSIS "error opening file for writing"

On some computers the antivirus while the installation files are being copied blocks the file and the installer throws the error "Error opening file for writing filename.extension" is there any way to solve this? That before launching the exception…
Aragorn
  • 39
  • 3
1 2 3
99
100