Archive: How to create an NSIS installer from Visual Studio?


How to create an NSIS installer from Visual Studio?
Any ideas on how to create an NSIS installer from Visual Studio instead of using the setup project?

NSIS will have to automatically detect the dependencies of my .exe and package them. Is this possible?

Thanks.


NSIS doesn't automatically detect dependencies. It's up to you to know what files are needed for your app.

I've used other installers that try to find dependencies for you, but often, the list of needed dependencies was ridiculously high. For example, InstallShield X said that one of my small apps needed 50MB worth of dependencies. In reality, we had no problems when he only used 4 MB of them. It did require us to know exactly what each "dependency" did, and if our app needed it, or if it comes pre-installed on Windows machines, etc. That time researching was definitely worth it.

If you are looking for a tool to automatically generate your installer for you (such as what MSI wizards will do for you), I personally do not know of any. I believe there are tools that help you build an installer, but ultimately, you'll still need to get involved coding some portions of your NSIS script.

Ultimately, if all you need is just to copy files and register some dll's, you shouldn't have much trouble making an NSIS installer script to do that, if you use other tools or sample installers to help you get started.


Re: How to create an NSIS installer from Visual Studio?
Hey tangam,

Originally posted by tangam
Any ideas on how to create an NSIS installer from Visual Studio instead of using the setup project?
You might be interested in trying add-in is named Votive (http://wix.sourceforge.net/votive.html) and it integrates WIX toolset (http://wix.sourceforge.net/) into Visual Studio. This one produces MSI installers as standard Setup Project does but it's much more powerful and flexible.

There is also beta version of Lexpa (http://www.lexpa.com/). It's an add-in for Visual Studio which integrates Inno Setup (http://www.jrsoftware.org/isinfo.php) into that IDE. Maybe they are also going to create something for NSIS later?

Sorry for bringing up old topic but I suppose this tool called Visual & Installer is exactly what you need: http://www.unsigned-softworks.sk/visual-installer/

Some features:


Download and try. Contact me in case of any questions, I spent some time on develomnet of it ;)