I want to use the SqlExpress2008 Bootstrapper for a new installation on Windows7, I do not want to use the default SQLEXPRESS Instance.
I have attempted to edit the package.xml file located in: C:\Program Files\Microsoft
SDKs\Windows\v7.0A\Bootstrapper\Packages\SqlExpress2008\en\package.xml
and updated the command argument instancename=CUSTOMINSTANCE
<Command PackageFile="SQLEXPR32_x86_ENU.EXE"
Arguments='/q /hideconsole /action=Install /features=SQL /instancename="CUSTOMINSTANCE" /enableranu=1 /sqlsvcaccount="NT Authority\Network Service" /AddCurrentUserAsSqlAdmin /skiprules=RebootRequiredCheck'
EstimatedInstalledBytes="225000000"
EstimatedInstallSeconds="420">
But unfortunately it still creates the default SQLEXPRESS not CUSTOMINSTANCE
The wix tag is as follows:
<sql:SqlDatabase
Id="SqlDatabaseCore"
ConfirmOverwrite="yes"
ContinueOnError="no"
CreateOnInstall="yes"
CreateOnReinstall="no"
CreateOnUninstall="no"
Database="MyDatabase"
DropOnInstall="no"
DropOnReinstall="no"
DropOnUninstall="no"
Instance="[SQLINSTANCE]"
Server="[SQLSERVER]">
<sql:SqlFileSpec
Id="SqlFileSpecCore"
Filename="[CommonAppDataFolder]MyCompany\Database\MyDatabase.mdf"
Name="MyDatabase" />
<sql:SqlLogFileSpec
Id="SqlLogFileSpecCore"
Filename="[CommonAppDataFolder]MyCompany\Database\MyDatabase.ldf"
Name="MyDatabaseLog" />
<Property Id='SQLSERVER'>.</Property>
<Property Id='SQLINSTANCE'>CUSTOMINSTANCE</Property>
Is this the standard way to accomplish this?