7

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!

2

6 Answers 6

12

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

7

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.

3
  • 2
    I support this answer : WiX is way much powerful than VS Setup projects, and even more simpler to use. Sep 22, 2008 at 8:36
  • 2
    +1. WiX is awesome and way easier to work with than the setup projects. Dec 20, 2008 at 23:12
  • 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. Dec 30, 2009 at 15:38
4

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

Inno Setup

1
  • Great recommendation. Very solid product and support community. I used to use it quite often. Dec 21, 2008 at 0:34
2

The exe file is actually just a boostrap loader, which launches the MSI file. The MSI file is the actual installation file.

1

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.