Okay, I am writing a database application and I want to create a setup application to install Sql-Server Express and create/configure the database.

Question 1: How do I have the setup project install SQL-Server Express automatically?

Question 2: Once Sql-Server Express is installed, how do I (from the setup) create the database, create the tables, and determine the servername?

If any of this can't be done in the setup, I suppose I could create the database from inside my program... but I don't know how to create a database from VB code.

Any advice would be appreciated.