Install SQL Server Express r2 2008 using a configuration file I need to deploy my application with SQL Server Express. There is a way of installing sql express using a configuration file so that when deploying my application it appears as if I am only installing one thing and make it easier for the user installing the software. Anyways here are the steps:

Step 1)

Create the configuration file:


Step 2)

Place the Setup.exe (SQL Server 2008 R2 Express)  file next to the configuration file. I place both files at the root of my c drive for simplicity

Step 3)

Execute the setup.exe passing the parameters:




I been getting a lot of errors. Can someone show me how can I have a configuration file in order to install sql server express edition with the administrator as the main user.I don't want the user installing the application to have to go throughout that trouble. I found a nice link that teaches you how to create a configuration file in here but I still am not able to do it. I am using windows xp 32 bit. I managed to installed it on the virtual machine manually. I will like to be able to install sql server express from the command line or with a configuration file.
Unfortunately, you cannot install SQL Express without Administrator rights on the machine and it's not something you can set in the config file or on the command line. If being able to install without Administrator rights is a requirement, you may want to investigate using SQL Server Compact Edition.

See the following MSDN topics for more information:


Using SQL Server Compact 3.5 (Visual Studio)
How to: Deploy a SQL Server Compact 3.5 Database with an Application
SQL Server Compact 3.5 SP2 Books Online
Local Data Overview
Choosing Between SQL Server 2005 Compact Edition and SQL Server 2005 Express Edition -- A little dated now, but much of it still applies.