views:

6360

answers:

25

I have primarily used Visual Studio 2003, and its tool for building an installer was pretty painful. Files and folders had to be added manually, one by one. I am looking at upgrading to VS 2008, and I'm not sure what its installer is like.

Also I'm interested in installers for non-.net applications.

Are there good, open source options? Is Visual Studio's installer any better in 2008?

+57  A: 

Have you seen InnoSetup? This is general install engine. There is really nice front end to InnoSetup called IsTool. I used it in old Delphi-days and it was superb.

WiX plus its editor WiXEdit seem to be the similar pair and look pretty powerful as noted below.

There is also NSIS originally created by Nullsoft, the people who made Winamp. Now it is opened.

Ohloh does not says which one is particularly better.

Some people suggest VS2008's ClickOnce but seems to be not very good.

You can always look for a big list on Wikipedia.

Michal Sznajder
Just to add to this, Votive integrates WiX into Visual Studio and is available from the WiX website.
OregonGhost
Hmm..good collection of other answers but doesn't really help me to choose.
Luke
I would recommend against tools for Windows that are not msi-based (the Windows Installer service). There are many features that make an installer and/or the installed version more robust and useful, e.g. resilience, elevated installs, deployment over ActiveDirectory, etc.
vividos
Of course it's not always free (InstallShield etc.) and not as usable as one of the free alternatives (WiX without UI).
vividos
How does this answer the question?
Greg Dean
I just read question again and you are right. Technically speaking it does not answer this question. But people are happy with this answer.
Michal Sznajder
+3  A: 

It's relatively simple using VS2008's ClickOnce. ClickOnce sorta does all the work for you.

I asked over here if there was anything better, and I got the response that although ClickOnce was not the most powerful, it was just about the easiest.

Grant
+15  A: 

You can also look into using WiX, which is pretty powerful, and not too tough with a good editor, like WiXEdit. This tutorial should help a great deal as well.

Chris Marasti-Georg
+27  A: 

NSIS is a fantastic open source, highly optimized, scriptable installer system.

It's the perfect installer system for programmers, because you create the installer using a powerful script rather than the bloated and unintuitive GUIs that most installer systems use.

It was originally created by Nullsoft, the people who made Winamp.

Jason Pratt
I have had compatibility issues with NSIS. It was a great tool, but getting it to work with all the various plugins was a nightmare.
Tim
Steve Wortham
It should be noted NSIS can also output .MSI's.
GONeale
+6  A: 

I'm using Installshield - steep learning curve, steep price... so assuming you don't want to lay out a lot of cash (if any), I'd start with checking out Advanced Installer. The free version is pretty damn easy to use, and they have a pro version for $500, which is pretty damn cheap in comparison to Installshield.

I've heard and seen good things about Nullsoft Installer as well, but I've never tried it myself. YMMV.

sascha
+10  A: 

The first thing you want to decide is do you want a Windows Installer based setup for your application or do you want to use any technology. If you do not need or want to do Windows Installer, there are bunch of free installer authoring tools. As mentioned above, NSIS and InnoSetup are both very good. There's a big list on Wikipedia.

For Windows Installer based setups, the only free one that I know of is WIX. It's pretty bare bones and you should have a good understanding of how Windows Installers are setup. For commercial authoring tools, there are a few. InstallShield and Wise have been around forever and a lot of people use them.

I use InstallAware, which was founded by some ex-InstallShield people. I found it to be very powerful and very flexible. Support was pretty good. I used to use Wise For Windows, but I was not happy with the quality or the support. Whatever tool that you choose, try to find one with an active user base. The other users will provide the most help for solving problems and helping with the learning curve.

Chris Miller
+10  A: 

To help keep everything straight, you basically have the option of a "Windows Installer" or a script-based installer.

With Windows Installer you use WiX, InstallShield, Wise Installation Studio, Orca, or Visual Studio to author a .msi database file which is then consumed by the Windows Installer service (msiexec) on the target PC.

Script-based installers are NSIS, classic InstallShield and Wise (and I am sure a bunch of others), that use a self contained script or executable to perform installation tasks (copy files, register things, make icons, etc).

Windows Installer editors usually make a basic installation easy to create, but many start to have issues when the support of Windows Installer starts to falter (checking for dependencies for example) or more complex tasks are desired (upgrading and patching tend to be a sore point). Often you will see a mix of native Windows Installer databases with embedded custom actions and wrapped with bootstrappers and/or chainers and/or dependency checks.

Rob Hunter
+1  A: 

My vote goes to NSIS, too. It's simple. It's free. There are numerous examples and lots of information on the web. You can try it out with very little time and no money, and see how you like it. It's also open-source since you said you would like that.

Derek Park
+2  A: 

I've been working with InnoSetup for some years and am very happy with it. It's really easy to create simple "copy bunch of files to directories" and putting configs in the registry with InnoTool, but it's also possible to do more complicated things using a PASCAL based script language.

BlaM
+7  A: 

I love InnoSetup for simple installs. It just works, supports common scenarios like filetype associations, and has good support for upgrades (doesn't make you uninstall to upgrade, as MSI's do by default).

ClickOnce is good, providing that you have a server that will support it. It's great in an enterprise environment, but harder in the real world - especially if you're working on an open source project, since none of the hosting providers (even CodePlex!?!?) supports ClickOnce delivery. Another issue with ClickOnce is that it requires the .NET framework be installed, which is an issue for any .NET based install. The .NET 3.5 SP1 Client Install should hopefully change that, as it's "only" 24MB.

Jon Galloway
A: 

For quick and simple installation I use Visual Studio's built in installers. For more complex installation and especially Mobile Apps I prefer NSIS. I did use Advanced Installer for a while but the power of NSIS and the open source nature of the product made it a more suitable choice.

Diago
+6  A: 

While I'm not a Windows developer, I would always use the platform vendor's native installation technology when possible. Otherwise, you run the risk of the platform vendor adding features that your installation system can't participate in. For example, Windows added the ability to roll back installs; I don't imagine it worked all that well with custom installers.

  • For Windows, I'd ship Windows Installer .msi packages. I expect Visual Studio includes something for creating these.
  • For Mac OS X, if I wasn't shipping a self-contained app for drag-and-drop install, I'd ship an Installer .pkg package. The Mac OS X developer tools include PackageMaker for creating these.
  • For Linux, I'd use whatever's native to my distribution. (rpm for RedHat-derived, apt for Debian-derived.)

The best user experience on a platform usually comes from using your platform vendor's native technologies, even when it comes to software installation.

Chris Hanson
A: 

One of the great features of Inno Setup is that it asks all the user questions before decompressing the payload. So you don't have to sit and wait for 5 minutes, answer 30 seconds worth of questions, and then wait another 5 minutes. Also, since it's not making two copies of all the data, the total time is actually lower, and you don't need as much extra free disk space.

Joshdan
+11  A: 

WiX is the best Windows Installer based system that I've used. The learning curve is a little steeper than the Visual Studios install builder, but you get a lot more control of the final product. Wix provides access to all of the Windows Installer feature, most of which are hidden when using Visual Studios. It's also easy to generate wix definition files on the fly--the source is all xml. Build integration is also simple since the tools are all command line driven.

I'd discourage using a script based installer, or a windows installer one which relies too much on custom actions. One of the big advantages Windows Installer provides is a transactional approach to installation. Losing these rollback facilities by using xcopy, or trying to roll your own transaction system, is a bad idea.

To get started with Wix, download the package from the source forge page. It comes with a couple basic tutorials to get you started, but I would recommend working through tramontana's tutorial

tsellon
Windows installer based installers, like WiX, are also the only way to install certain things properly - such as registering DLLs to the GAC. Gacutil is not redistributable, and self registration methods on DLLs are inherently problematic if anything at all goes wrong.
Robert P
The comment above is incorrect/outdated, Inno Setup can register DLLs to the GAC.
mlaan
+5  A: 

I'll second/third/fourth the kudos for Inno Setup. It's a scripted-type (not an MSI-type) system, but the basic scripts are written in a simple, clear declarative style, and one can get something up and running very quickly, yes, yes! I have used some commercial installer packages that didn't measure up at all.

Lyman Enders Knowles
Agreed, I had used NSIS before, InnoSetup was a lot easier to use.
romkyns
A: 

I am a big Inno Setup fan. I would suggest playing around with the provided samples to get started.

Ben Griswold
+4  A: 

Inno setup and NSIS do not cater for application sociability, they do not handle installation under locked down environments. they are procedural and only designed for low impact installations.

Prior to Windows Installer there was SMS installer which is very similar to NSIS and InnoSetup. Windows Installer advanced so much more advanced than you could ever get from a third party installer such as NSIS and Inno.

Here's some reasons why.

1) sociability between applications is available with windows installer (none with the others) 2) locked down installation supported (not with the others) 3) multi platform support (limited with the others) 4) enterprise friendly, (support teams can easily generate silent installations) 5) a full secured installation platform 6) user elevation / impersonation 7) self healing 8) user profile fix up 9) widely adopted as the mainstream installer 10) the list goes on and on but this is probably enough to steer you away from the others

If you care about your target clients in any way go the windows installer route.

Its harder to learn, its complex but on the other hand its enterprise ready.

if your target audience is a bunch of home users who are unlikely to care use the others. If not stick with the known entity.

In what ways is the Windows installer locked down?
pc1oad1etter
I think the "locked down" means that you can install a msi file on a locked-down (LUA user) system when it doesn't write to system-only places like registry HKEY_LOCAL_MACHINE and such. Of course this feature can be disabled with a policy as well.
vividos
The list of reasons above is incorrect/outdated for Inno Setup
mlaan
A: 

I've never had much luck with installers until I found NSIS. Somehow the scripting just appealed to me, and the examples started me off quickly. Before I knew it (within a week's time), I had an functioning installer that was a couple of thousands of lines long.

Utilising the ExperienceUI plugin made the installer look great without me having to do much more stuff.

One bad thing about NSIS, at least the last time I checked, was that it doesn't keep track of what was installed. So if you want to write a setup program that remembers installed components and allows your user to selectively choose parts to uninstall, you have to script that manually.

Darkwoof
+1  A: 

I am now experimenting with Windows Installer (WiX) msi files being run from an Inno Setup script.

Each .msi file would have it's own ARP entry and install a logical application package, with Inno Setup script logically chaining the prerequisites and coping optional files like sample data.

I am hoping this will integrate nicely into our automated build system.

Anybody have success with this approach or something similar?

Rob Hunter
A: 

You should take a look at InstallJammer. Not only is it free, it's cross-platform and very easy to use. Most common actions don't require any scripting at all, but with a powerful scripting language underneath the hood, you can make an install do just about anything you want.

If all you want is a basic installer to install your application, you can have it built in a matter of minutes from the first time you start it up. If you want something more powerful, the capabilities and documentation are excellent.

+2  A: 

I've used NSIS and Inno. I was not really happy with NSIS - the plugins and versions seemed to be incompatible and we had problems maintaining an installer.

One specific problem I remember having was dynamic setting of a version - perhaps they fixed this, but you had to go though all sorts of hoops to set the version info of your app and display it in your installer scripts.

I am happy with Inno, but note that the project that uses Inno is a lot simpler than the install for NSIS.

Inno is great.

Tim
A: 

Speaking from experience, the best answer seems to be DON'T.

If you have the skills to build an installer by hand, do so. You'll be a lot happier in the long run.

Joshua
Mark
@Mark, self-healing doesn't work.
Joshua
A: 

After using WiX, NSIS and InstallAware, I have to humbly admit that they were all overkill for what I really need as a software developer. There are no projects that I've done so far which couldn't be deployed using the Visual Studio deployment project.

Is it limited? Yes.

It is also very simple to learn an use. Moreover, you actually can do really neat things like automatically create patches (.MSP files) by using techniques as described here

I fully understand that you can't do everything inside of a Visual Studio setup project, but it's rather surprising what you can accomplish. It's free, it's easy and, frankly, for general use is a better option than spending endless hours learning WiX's mind-boggling XML (impressive as it is), or InstallAware's verbose scripts...

With VS Setup, it's drag'n'drop & build'n'deploy. Every other solution I've tried had set backs... they can't automatically detect your project output... or need special filters so as not to include unwanted outputs from the build.

My suggestion is thus: If you simply wish to get your project deployed, then learn:

  1. How to build a custom installer class, and
  2. How to author your own pre-requisite packages

These are both reasonably easy skills to master, and satisfy the needs of most developers.

Mark
There is no Setup and Deployment project template in Visual Studio Express Edition.
Peter Lee
A: 

I've had experience with the VS Installer/Deployment packages, installield, and InstallAware, and have found Installaware to be a good compromise of ease of use and power.

Installshield has so much power, it's overkill for almost any straight application install.

The VS Package stuff is fine for very simple installs, but doesn't have a lot of options.

InstallAware has worked well for me. Their support staff has generally been helpful, and it's been able all my .net and native application/driver installs without too much hassle. It also has a decent dialog editor.

JoelHess
A: 

If you decide to use WiX and your application requires .NET Framework you might be interested in having a look at SharpSetup. It builds on WiX but gives you the possibility to check for prerequisites before launching msi and create user interface of your installer in WinForms (.NET/C#). It also provides controls to interact with windows installer service, sample dialog templates and helper tool for adding files to your wix script. Ok, it's not open source (only free to use, both personal and commercial) and more targeted for .NET applications, but still I think that people looking for installer tool might be interested.

Tomasz Grobelny