Free software for Windows installers: NSIS vs. WiX? [closed]

Solution 1:

If you want to get an installer done today, with the minimum amount of overhead, use NSIS. Simple scripting language, good documentation, fast.

If you want to build MSI files, integrate with the Windows Installer transactional system, and have plenty of time to devote to learning the declarative model used by Windows Installer, then check out WiX.

Solution 2:

Also, maybe give Inno Setup a shot. Sure, you might find it to be a bit strange as it forces you to write custom code in Pascal, but then again, there's hardly anything any more that forces you to actually do custom code - Inno Setup is really, really powerful.

Inno Setup also generates EXE installers - if you want your application to be easily deployable in enterprise environments, you'll probably have to go the WiX route, though personally, I've had quite the share of MSI related problems as a user that I personally would prefer MSI die a slow and horrible death (well - actually, a quick death would be favorable at this point - but horrible it can very well be), so just go ahead and do the EXE file thing.

So.

  • NSIS: Requires you to learn a new language. Creates EXE-installers.
  • WiX: Declarative setup creation, although a bit low-level. It certainly requires some fundamental MSI knowledge which I find really hard to obtain through the general lack of easy tutorials.
  • Inno Setup: Allows you to create quite powerful EXE installers with an easy, largely .INI-File based syntax, but it forces you to learn Pascal if you need custom coding.

As a long-time Delphi coder, I'd always go Inno Setup, though that's probably very biased (I'm an Inno Setup fan since around 1996).

Solution 3:

This is pretty much a duplicate of *What is the best choice for building Windows installers, so I suggest you check out the many, many answers over there (there's some discussion of the commercial alternatives there too).

The question you need to ask yourself is: Do I need to be compatible with corporate deployment scenarios for SMS/Active Directory deployment? If the answer is yes, then learn the MSI fundementals.

If you want to ship an application that's really just for fun or doesn't need to be supported on a corporate environment and you're not wanting to spend lots of time getting up to speed then learn NSIS.

Solution 4:

NSIS will give you an exe, WiX will give you a MSI.

I have used NSIS to package up a couple MSI installers into a single exe and do some additional checking I couldn't figure out how to do using the VS.NET Setup project.

INNO Setup is another installer you may want to look at. It is closer to NSIS than WiX but the installers it makes look more like standard installers than NSIS installers do.

I did not use WiX because I did not like the XML definition language used to build the installer and I couldn't figure out if it supported packaging up other dependent MSIs

Of the three I liked NSIS best as it had the best documentation.