I want to create a set-up for web application which should be capable of :
1.Installing SQL Server when a user will run that set-up.(if SQl Server is not installed)
2.Asks for License key.
3.Running a database script if database is not present.
Please tell me Step-wise, how to do this ?