Not really sure I why this is failing but I would add VersionNT64 to the condition so you run the appropriate install on x64.
Neil >I am having an issue where I have both the x86 and x64 versions of SQL >Server >Express 2012 >So if the OS is 64 bit install the 64 bit version, if the OS is 32 bit >install the 32 bit version... >But if I have neither both install (on a 64 bit OS) :( >My code is: >Detection: > > <?define InstanceName = "MSSQLSERVER" ?> > <?define InstanceNameExpress = "SQLEXPRESS" ?> > > > <util:RegistrySearch > Id="SqlInstanceFound" > Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance >Names\SQL" Value="$(var.InstanceName)" > Result="exists" Variable="SqlInstanceFound" /> > > <util:RegistrySearch > Id="SqlInstanceFoundExpress" > Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance >Names\SQL" Value="$(var.InstanceNameExpress)" > Result="exists" Variable="SqlInstanceFoundExpress" /> > > > <util:RegistrySearch > Id="SqlInstanceFoundx64" > Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance >Names\SQL" Value="$(var.InstanceName)" Win64="yes" > Result="exists" Variable="SqlInstanceFoundx64" /> > > <util:RegistrySearch > Id="SqlInstanceFoundx64Express" > Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance >Names\SQL" Value="$(var.InstanceNameExpress)" Win64="yes" > Result="exists" Variable="SqlInstanceFoundx64Express" /> > > >Package: ><ExePackage Id="SQLExpressx64" > DisplayName="Microsoft® SQL Server® 2012 - Express >Edition >x64" > SourceFile="..\..\PreReqs\SQLEXPR_x64_ENU.exe" > InstallCommand="/ACTION=Install /INSTANCENAME=SQLEXPRESS >/FEATURES=SQLENGINE /Q /HIDECONSOLE /SkipRules=RebootRequiredCheck >/IAcceptSQLServerLicenseTerms /SQLSVCSTARTUPTYPE=Automatic >/SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" >/AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" >/ASSYSADMINACCOUNTS=BUILTIN\Administrators >/SQLSYSADMINACCOUNTS=BUILTIN\Administrators >/BROWSERSVCSTARTUPTYPE=Disabled >/ADDCURRENTUSERASSQLADMIN=true /TCPENABLED=1" > InstallCondition="Not SqlInstanceFoundx64 AND Not >SqlInstanceFoundx64Express AND Not SqlInstanceFound AND Not >SqlInstanceFoundExpress AND VersionNT64" > DetectCondition="SqlInstanceFoundx64" > Permanent="yes"/> > > <ExePackage Id="SQLExpressx86" > DisplayName="Microsoft® SQL Server® 2012 - Express >Edition >x86" > SourceFile="..\..\PreReqs\SQLEXPR_x86_ENU.exe" > InstallCommand="/ACTION=Install /INSTANCENAME=SQLEXPRESS >/FEATURES=SQLENGINE /Q /HIDECONSOLE /SkipRules=RebootRequiredCheck >/IAcceptSQLServerLicenseTerms /SQLSVCSTARTUPTYPE=Automatic >/SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" >/AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" >/ASSYSADMINACCOUNTS=BUILTIN\Administrators >/SQLSYSADMINACCOUNTS=BUILTIN\Administrators >/BROWSERSVCSTARTUPTYPE=Disabled >/ADDCURRENTUSERASSQLADMIN=true /TCPENABLED=1" > InstallCondition="Not SqlInstanceFound AND Not >SqlInstanceFoundExpress AND Not SqlInstanceFoundx64 AND Not >SqlInstanceFoundx64Express" > DetectCondition="SqlInstanceFound" > Permanent="yes"/> > >What am I doing wrong? >thanks, > >Steve > > > > >-- >View this message in context: >http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installing-S >QL-Server-2012-Express-in-bootstrapper-tp7582190.html >Sent from the wix-users mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >Keep yourself connected to Go Parallel: >TUNE You got it built. Now make it sing. Tune shows you how. >http://goparallel.sourceforge.net >_______________________________________________ >WiX-users mailing list >WiX-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users