We have and issue with SQL Server 2008 R2 Express command line installation Failing when there is an existing SQL 2005 instance on Machine.
If there is no other SQL the following command line works 100%:
SQLEXPRADV_x86_ENU /q /ACTION=Install /IAcceptSQLServerLicenseTerms /FEATURES=SQL,RS,SSMS /BROWSERSVCSTARTUPTYPE=Automatic /INSTANCENAME=MYDBI /SQLSVCSTARTUPTYPE=Automatic /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /SECURITYMODE=SQL /SAPWD=Password123 /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /RSSVCACCOUNT="NT AUTHORITY\Network Service
This has been observed on XP and 2008R2.
Install works successfully when run interactively but we need a command solution.
I've tried various parameters with the same result:
2012-11-02 10:55:26 Slp: ----------------------------------------------------------------------2012-11-02 10:55:26 Slp: Running Action: ExecuteInitWorkflow
2012-11-02 10:55:27 Slp: Workflow to execute: 'INITIALIZATION'
2012-11-02 10:55:27 Slp: Error: Action "Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction" threw an exception during execution.
2012-11-02 10:55:27 Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
2012-11-02 10:55:27 Slp: Parameter name: InstallMediaPath
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.MsiExtension.InitializeMsiExtension.set_InstallMediaPath(String value)
2012-11-02 10:55:27 Slp: --- End of inner exception stack trace ---
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ObjectDatastoreIntegration.SetInputSettingInputPropertiesOnObject(Object pendingObject, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ActionDatastoreIntegration.SetPropertiesOnRunningAction(ActionKey key, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionMetadata.NotifyInExecution(ActionKey actionRunning, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction.ExecuteAction(String actionId)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: --- End of inner exception stack trace ---
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
2012-11-02 10:55:27 Slp: Error: Action "Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction" threw an exception during execution.
2012-11-02 10:55:27 Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
2012-11-02 10:55:27 Slp: Parameter name: InstallMediaPath
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.MsiExtension.InitializeMsiExtension.set_InstallMediaPath(String value)
2012-11-02 10:55:27 Slp: --- End of inner exception stack trace ---
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ObjectDatastoreIntegration.SetInputSettingInputPropertiesOnObject(Object pendingObject, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ActionDatastoreIntegration.SetPropertiesOnRunningAction(ActionKey key, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionMetadata.NotifyInExecution(ActionKey actionRunning, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction.ExecuteAction(String actionId)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: --- End of inner exception stack trace ---
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction.ExecuteAction(String actionId)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: Received request to add the following file to Watson reporting: C:\Users\Administrator\AppData\Local\Temp\2\tmpE022.tmp
2012-11-02 10:55:27 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2012-11-02 10:55:27 Slp: Inner exceptions are being indented
2012-11-02 10:55:27 Slp:
2012-11-02 10:55:27 Slp: Exception type: System.Reflection.TargetInvocationException
2012-11-02 10:55:27 Slp: Message:
2012-11-02 10:55:27 Slp: Exception has been thrown by the target of an invocation.
2012-11-02 10:55:27 Slp: Stack:
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
2012-11-02 10:55:27 Slp: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ObjectDatastoreIntegration.SetInputSettingInputPropertiesOnObject(Object pendingObject, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.SetupExtension.ActionDatastoreIntegration.SetPropertiesOnRunningAction(ActionKey key, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionMetadata.NotifyInExecution(ActionKey actionRunning, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction.ExecuteAction(String actionId)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2012-11-02 10:55:27 Slp: Inner exception type: System.ArgumentNullException
2012-11-02 10:55:27 Slp: Message:
2012-11-02 10:55:27 Slp: Value cannot be null.
2012-11-02 10:55:27 Slp: Parameter name: InstallMediaPath
2012-11-02 10:55:27 Slp: Stack:
2012-11-02 10:55:27 Slp: at Microsoft.SqlServer.Configuration.MsiExtension.InitializeMsiExtension.set_InstallMediaPath(String value)
2012-11-02 10:55:37 Slp: Watson Bucket 1
Original Parameter Values
2012-11-02 10:55:37 Slp: Parameter 0 : SQL Server 2008 R2@RTM@
2012-11-02 10:55:37 Slp: Parameter 1 : System.RuntimeMethodHandle._InvokeMethodFast
2012-11-02 10:55:37 Slp: Parameter 2 : Microsoft.SqlServer.Configuration.MsiExtension.InitializeMsiExtension.set_InstallMediaPath
2012-11-02 10:55:37 Slp: Parameter 3 : System.Reflection.TargetInvocationException@-2146232828
2012-11-02 10:55:37 Slp: Parameter 4 : System.ArgumentNullException@-2147467261
2012-11-02 10:55:37 Slp: Parameter 5 : ExecuteInitWorkflow
2012-11-02 10:55:37 Slp:
Final Parameter Values
2012-11-02 10:55:37 Slp: Parameter 0 : SQL Server 2008 R2@RTM@
2012-11-02 10:55:37 Slp: Parameter 1 : 0x9B6E2AAC
2012-11-02 10:55:37 Slp: Parameter 2 : 0x02585AA6
2012-11-02 10:55:37 Slp: Parameter 3 : 0xFEC0B965
2012-11-02 10:55:37 Slp: Parameter 4 : 0xF15156D0
2012-11-02 10:55:37 Slp: Parameter 5 : ExecuteInitWorkflow
2012-11-02 10:55:37 Slp: The following exception occurred while preparing status logs during Watson failure processing: The timestamp marker on log files has not been set. The timestamp must be set prior to it being used for the first time.
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Microsoft SQL Server to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\MSSQLServer to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL Server.reg_
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2012-11-02 10:55:37 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
2012-11-02 10:55:38 Slp: Exception has been thrown by the target of an invocation.
2012-11-02 10:55:38 Slp: Watson bucket for exception based failure has been created
2012-11-02 10:55:38 Slp:
2012-11-02 10:55:38 Slp: ----------------------------------------------------------------------
2012-11-02 10:55:38 Slp:
2012-11-02 10:55:38 Slp: Error result: 1472388962
2012-11-02 10:55:38 Slp: Result facility code: 1986
2012-11-02 10:55:38 Slp: Result error code: 57186
Thanks,
Davy
http://daftspaniel.wordpress.com