nsis

NSIS not extracting "ifnewer"

The product I worked on used to utilize an installer other than NSIS. Currently there are still some clients that have a version of a product that was prior to our using NSIS. Now they are trying to install a new version of our software that uses the NSIS installer. The problem is, when trying to install over any version that was pre-NS...

How to include and use text field in installer

Hi I would like to include license-check into my NSIS installer. Simple Text field and button would be enough for me, but I didn't find any example how to include Text field (text box) into page and how to read its value. Will you help me with it, please? ...

Using NSIS, how to let user choose option on uninstall?

I'm using NSIS and the Modern User Interface 2. During uninstall, I want to let the user select whether to delete saved application data or not by clicking a checkbox... What is the best way to do this? ...

Make Windows refresh icon cache

I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify wit...

Uninstalling firefox add on

Hi, I am installing firefox add on in NSIS using -install-global-extension command. But i don't know how to uninstall that add on in Uninstaller section. Can anybody tell me the command through which i can uninstall the add on. Please help me. Thanks in advance. ...

NSIS - How to copy recursively while excluding files?

I need to copy a directory recursively but exclude a couple of directories within it. The documentation for NSIS says the File command takes /r and /x parameters, but I cannot get them to work together properly. The structure of my directory containing my .nsi script is: parent-dir dir-to-exclude-1 setup.nsi dir-to-cop...

NSIS Directory Page after Browse for install dir "${PRODUCT_NAME}" is added after selection

Hi, I have a simple NSIS script with a directory page, where the user can select a directory to install the application to. See the example below, if the app is already installed, it takes the value from the registry or else the www root or else "program files\publisher\product name". The problem is that when I click browse on the dire...

How to read a command line parameter given to an uninstaller?

Using NSIS, how can I read a (optional) command-line parameter provided to an uninstaller? I don't need to read it by name-- just reading the first parameter given could be enough. ...

How to wait for uninstaller to finish?

Using NSIS, I want to launch an uninstaller and wait for it to finish before proceeding with my installer. The problem is the uninstaller is returning immediately, even though I'm using ExecWait. I saw this page here: http://nsis.sourceforge.net/When_I_use_ExecWait,_it_doesn%27t_wait which mentions why it's happening, and then offers ...

Is it safe to do "RmDir /r $INSTDIR" in NSIS?

I noticed this warning in the documentation for NSIS's RmDir method: Warning: using RMDir /r $INSTDIR in the uninstaller is not safe. Though it is unlikely, the user might select to install to the Program Files folder and so this command will wipe out the entire Program Files folder, including other programs that has noth...

Executing Batch File in NSIS installer

I have a batch file that I need to run within my NSIS installer. It must run after all the files have been extracted, (I suppose this is obvious, otherwise the batch file wouldn't exist yet). I tried to use MUI_PAGE_CUSTOMFUNCTION_PRE with the finish page in order to run it but when it gets to that portion of the script it appears that ...

Are there any good NSIS alternatives specifically for Java projects?

Title just about says it all. Are there any good scriptable installer/uninstaller systems made for Java projects? Ideally a system that interfaces well with Ant build scripts. Thanks! ...

Superscript text formatting for NSIS

I am developing an NSIS installer for a product that has a superscript in its name. Is it possible to encode superscript text in the installer script? In particular, I'd like to get the Name, BrandingText and Caption to display the superscript. I would be willing to switch to the NSIS Unicode build if that would definitively solve t...

How to make NSIS RMDir operate on subdirectories?

In an NSIS installer script I have: RMDir "$INSTDIR" Now, if the user sets the installation directory to C:\Program Files\Product, it works fine, however if they install to something deeper, such as C:\Program Files\Company\Product for example, RMDir gets rid of "Product" but not "Company". How can I make it delete each empty director...

NSIS - retrieving the start menu folder not working as expected

In my NSIS script, the MUI_STARTMENU_GETFOLDER macro is not working as expected - instead of giving me the folder that the user actually entered, it gives me the default that I set earlier. Near the beginning of my script I have: Var StartMenuFolder ; Define variable to hold start menu folder !define MUI_STARTMENUPAGE_DEFAULTFOLDER "${P...

How to integrate NSIS with a build system and supporting versioning

I have a nsis script to create an installer package of a tool in .NET, and works fine. The problem is that I want to integrate it in my build system (currently using NANT, but migrating to rake using ironruby) The version for the product is stored in a txt file which is read to generate the assemblyinfo, currently the build system au...

How to find the most recently edited file in NSIS

I have an NSIS script that pulls other installers from a local share. Some of these update very often. Rather than push out a new NSIS script every time, I'd like the script to look for the most recent installer matching a pattern in a certain directory. Is there a plugin or a Windows API that I can call from NSIS to do this? ...

generate a folder to .nsi file use python

How to generate a folder to .nsi file use python thx! has any Library to do it? ...

How do I write an installer for a Windows SDK in Python?

I understand that NSIS supports plugins, but I can't find an NsPython tutorial. Maybe first I should ask: if I can run Python code from NSIS, is it a good idea to script my installer in Python (instead of explicitly managing a stack in an NSIS script)? And secondly: are there any good tutorials? Alternatively: Is there another appro...

How to call windows API in NSIS?

How to call windows API in NSIS? ...