Hi,
I am creating an .msi that will do the following:
a) Install SQL Server 2005 express edition
b) Create a database
To do this I created a Class Library project and added an installer class. I also created a Setup project and added the SQL Server 2005 msi to this.
In my installer class I override the install method and run the following:
.....
base.Install(stateServer); //this copies the SQL Server 2005.msito the "Program Files" directory.
System.Diagnostics.Process.Start(strBatchFile);
//where strBatchFile contains the following:
//misiexec /i C:\Program Files\......\SQL Server 2005.msi
//now run code to create the database within the newly installed SQL Server 2005
.....
When I try and run the .msi I get the message:
"Another installation is in progress. You must complete that installation before continuing this one."
This suggests that I cannot install SQL Server 2005 within my .msi. Is there any way around this?
Thanks in advance,
Kabir