I have the need to create a web setup project for some of our web applications. We have clients on both IIS6 and IIS7. I want to create an MSI, or some type of setup project that allows me to do the following:
1) Detect if databases exist. If they don't create the database and their objects 2) Select the directory where the files should target 3) Detect if the correct websites exist. If they don't create a website and the virtual directories. Some of the virtual directories also have security settings that will need to be set
I am comfortable creating MSI's to handle this level of customization. I plan on using osql and scripts to handle the database deployments.
I have 2 questions. First, is there a better way (other than MSI's) to attempt this? Secondly, what is the best way to handle the different versions of IIS? Should I just use WMI and ensure that IIS 6 compatibility is turned on for IIS7?
Any suggestions would be greatly appreciated.