views:

823

answers:

4

I need to create an installer program that will do install the following:

  1. ASP.Net Website
  2. Windows Service
  3. SQL Express if it isn't installed and the user doesn't have a SQL Server
  4. Dundas Charts
  5. ASP.Net AJAX v.1.0
  6. ReportViewer control (for 2.0 Framework)
  7. Check Framework prerequisites (2.0)
  8. Configure IIS and app.config (data connection strings, etc.)

Is it realistic to be able to do this with a VS Setup Project? Or, should I be looking at other install tools?

+5  A: 

You can use WiX

Alexander Kojevnikov
A: 

I used WiX. I banged my head against the wall for a few days, then got the hang of it. The WiX mailing list is key if you have never worked with WiX before.

JasonS
+3  A: 

Most of the best open source tools and programs for Windows are distributed using NSIS

ASP.Net Website ( no listing - bug in stackoverflow - code not formatting while list above .. )

CreateDirectory $INSTDIR
SetOutPath $INSTDIR
; HERE UNZIP ACTUALLY THE FILES (ADD *.js files if needed ) 
; PACK ALL THE FILES EXCEPT THOSE WITH FILE EXTENSIONS after the /x
File /r /x *.suo /x *.MDF /x *.exclude /x *.ldf /x *.pl /x *.nsis /x *.cmd "siteFolderName\*.*"
YordanGeorgiev
A: 

As my previous speakers already sayed i also would recommend you to use WiX. Visual Studio (till version 2008) also has a proprietary built-in installer system. But i would avoid using it, because you need to use the full Visual Studio IDE to compile it. You cannot use command line build scripts, and therefore it is useless when working with a automated build server.

WiX gives you all the flexibility you might need. And as far as i know, Microsoft will use it as standard installer tool in Visual Studio 2010.

Alexander
No they won't. WiX was going to be part of VS2010, but no longer - http://robmensching.com/blog/posts/2009/4/1/Visual-Studio-will-not-ship-the-WiX-toolset-contributes-only
blowdart