nsis

Getting a list of assemblies needed by application

Is there a way of getting all required assemblies (excluding the .net framework) for a .net project into a folder ready to be packaged into an nsis as setup file? I've tried writing a small console app that uses reflection to get a list of dlls but have got stuck with finding a foolproof way of determining if a dll is from the .net fram...

Recursing the file system with Powershell

Anyone happen to have a sample script for recursing a given directory in a filesystem with Powershell? Ultimately what I'm wanting to do is create a script that will generate NSIS file lists for me given a directory. Something very similar to what was done here with a BASH script. ...

Where to Store writable data to be shared by all users in a vista installer ?

My app is installed via NSIS. I want the installer to install the program for all users. I can do this, by installing to the 'program files' directory. There is a database file (firebird), that all user accounts on the system should share. If I store this database file in the 'program files' directory it will be read only. If I st...

How do you set directory permissions in NSIS?

I'm trying to build a Windows installer using Nullsoft Install System that requires installation by an Administrator. The installer makes a "logs" directory. Since regular users can run this application, that directory needs to be writable by regular users. How do I specify that all users should have permission to have write access to ...

How can I enumerate all *.exes and the details about each?

Something like: //Get all search data $search = new search('C:\', '*.exe'); while($item = $search->next()) { $details = $item->getDetails(); append_details('C:\files.txt', implode_details($details)); } But in NSIS (http://nsis.sourceforge.net/) ...

Reproducing the blocked exe "unblock" option in file properties in windows 2003.

When I download my program from my website to my windows 2003 machine, it has a block on it and you have to right click on the exe, then properties, then select the button "Unblock". I would like to add detection in my installer for when the file is blocked and hence doesn't have enough permissions. But I can't eaisly reproduce getti...

How to check if a file has the win2003 "blocked" option on it.

How do I check from within my NSIS installer if my installer has the blocked option in preferences on it. Even if you know of a way to check this without NSIS, please let me know so I can script it myself. See this question to find out more info about this blocked option. ...

NSIS get path of current installer file that is running

Is there an NSIS var to get the path of the currently running installer? ...

How can I make an array of constants in a NSIS install script?

I have a large number of NSIS install scripts (.nsi files) that simply define a bunch of constants and then the main installer logic resides an include file (.nsh) which is common to each of the installers. One of the include files looks like this: !ifdef ABC_SUBFOLDER RMDir /r "$ABCPath\Data\${ABC_SUBFOLDER}" SetOutPath "$ABCPa...

How to change NSIS Error message about CRCCheck

Some of my users are complaining about some odd errors my installers had after downloading them from my web server. This are NSIS installer that when downloaded came crippled or incomplete (usually because of slow Internet connections), the message is very clear "The installer you are trying to use is corrupted or incomplete....." IN EN...

Removing header text in NSIS installer

I would like to replace the entire header area in an NSIS installer with a bitmap. I have set MUI-HEADERIMAGE-BITMAP and set all the subcaptions to " ", however on the install files page I see empty white boxes over top my bitmap where the text would normally be. Is there a way around this? Cheers, Chris ...

Is there any NSIS Best Practices or Coding Standards around?

I'm creating several NSIS installers and as my expertise in this thing grows up I'm no longer happy with just making things work, I would like to see if there are some best practices or coding standards around this language, like how to write conditionals, variable names, unistallers, etc.. ...

How to create an installer out of an installer?

I have an old legacy application around for which I only have the installer. it doesn't do anything more than uncompress and register itself and his library's. As i don't have the source-code it gives me a lot of headaches in maintenance problems. In some particular computers (Acer Aspire One with Windows) just do not run. I would like...

Adding License information to NSIS installer

We distribute the software created by my group via Windows installers generated via NSIS. We generate our NSIS configuration files from a python script written by a developer who no longer works with us, so we currently do not have anyone on staff who knows how to write NSIS config files. I have been tasked with modifying this script t...

Getting currently logged on user when running as admin

I've written an installer using NSIS and I need it to install some files (DLLs etc.) in a standard location like C:/Program Files/App Name/. I also need to install files in the current user's Application Data directory. The problem is that when the user is not an admin on Vista I need to elevate privileges and in doing so the environment...

Free software for windows installers: NSIS vs. WiX?

I'm need to choose a software package for installing software. NSIS and WiX seem promising. Which one would you recommend over the other and why? Feel free to offer something else if you think it's better than these two. ...

Detecting if a program is already installed with NSIS

I'm using NSIS to create an installer for a program, what is the best way to detect if this program is already installed? Also, since I'm running the installer from the autorun.inf, can I immediately quit the installer if it locates an installed copy? Is there a better way to do this? ...

Detecting if the target volume is NTFS using NSIS

I'm creating an installer with NSIS for a program that needs to run on an NTFS volume. How do I detect if the install to path is on an NTFS volume and act accordingly (show a help/warning message)? ...

How do I have a function in NSIS called just while compiling the script?

I want to call a function (which calculates my version number) when my NSIS script is compiling, but not while it's executing. Is this possible? It uses nsExec and basic string manipulation functions. ...

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 there some good solution for this? Thank you note: I dont want to use windows installer/c...