views:

3626

answers:

9

I'm a web-guy stuck in "application world" in VS 2005. I created my windows forms program and want to give my end users the ability to install it (and some of it's resources) into a standard Program Files/App Directory location along with a start menu/desktop launcher.

The help files don't give any instructions (that I can find). This seems like such a trivial task to create an installer - but it's eluding me.

Any hints would be greatly appreciated!

+11  A: 

You're looking for a "Setup Project" which should be under the "Other Project Types" -> "Setup and Deployment" category in the "New Project" dialog.

Aydsman
+1  A: 

Add a "Setup Project" project to your solution. New Project > Other Project Types > Setup and Deployment. You can then choose what is installed and where.

Ty
A: 

The Setup Project is the way to go. If you're going to be deploying the installer from a web site, I recommend creating an MSI file as the project output (as opposed to a Setup.exe output). Most of my clients block the download of EXE files.

MusiGenesis
+4  A: 

Another option is Inno Setup, a third-party installer which is free, easy to use and excellent:

Inno Setup

MusiGenesis
Great recommendation. Very solid product and support community. I used to use it quite often.
joseph.ferris
+7  A: 

I would suggest using something WiX (windows installer XML). Its the toolkit most products from codeplex or OOB code drops use, and its pretty easy to get the hang of.

There's also (in version 3) an IDE add-in called Votive to help make things 'easier'.

Personally I find using WiX more flexible then using the built in Visual Studio installer template, though your means might vary. Take a look at http://wix.sourceforge.net/ and there's also a great tutorial at http://www.tramontana.co.hu/wix/.

If it seems kind of hard to start off with, persevere - I did and now I find it perfect for what I need.

Matthew Savage
I support this answer : WiX is way much powerful than VS Setup projects, and even more simpler to use.
Romain Verdier
+1. WiX is awesome and way easier to work with than the setup projects.
Gabriel Isenberg
I used WiX in 2005 to build an installer. I also found it hard at first but then I used the decompiler to reverse-engineer an existing MSI file that was "close enough" to what I wanted to build. I started off with the decompiled file as a template for my installer. Worked fine.
Robert Petermeier
+1  A: 

I'd like to add a quick start tutorial for the 'Setup Project' as a good place to start with building your own setup with VS: http://www.codeproject.com/KB/dotnet/Win_App_Setup_Project.aspx

zappan
+1  A: 

This video shows how to setup a Simple Installer using Visual Studio 2005

SwDevMan81
A: 

To create installer in Inno Setup you need script file. If you don't know how to do that try http://www.actualinstaller.com

Markus
A: 

The setup project builds 2 files. An exe and a msi. Can someone explain this a little??

Jesse Seger