I am trying to create an installer that will first install all required prerequisites, if necessary (.NET 3.5, Windows Installler 4.5, Powershell 1.0), restart the computer if required, then continue with a silent installation of SQL Server 2008r2. The command-line command my installer uses (with password changed) to install is:
SQLEXPRWT_x86_ENU.exe /QS /INSTANCENAME=MSSQLSERVER /ACTION=Install /FEATURES=SQL,BC,Conn,ADV_SSMS /SAPWD=MyPassword /SECURITYMODE=SQL /TCPENABLED=1 /ADDCURRENTUSERASSQLADMIN /SQLSVCSTARTUPTYPE=Automatic /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS
The SQL Server installation log shows install failed with this information. I don't know what to make of it. Please help!
Overall summary:Final result: Failed: see details below
Exit code (Decimal): -289740454
Exit facility code: 1722
Exit error code: 59738
Exit message: Value Dispose() cannot be called while doing CreateHandle().
Start time: 2013-01-21 11:29:26
End time: 2013-01-21 11:30:04
Requested action: RunRules
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20130121_112907\Detail_GlobalRules.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.1600.1%26EvtType%3d0x41E01861%400xEE30244D
Machine Properties:
Machine name: LEGION
Machine processor count: 1
OS version: Windows XP
OS service pack: Service Pack 3
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
SPLevel: 0
Installation location: c:\00b74ed28d0db066d2\x86\setup\
Installation edition: EXPRESS_ADVANCED
User Input Settings:
ACTION: RunRules
CONFIGURATIONFILE:
ENU: True
FARMACCOUNT: <empty>
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQL,BC,CONN,ADV_SSMS
HELP: False
IACCEPTSQLSERVERLICENSETERMS: True
INDICATEPROGRESS: False
INSTANCENAME: MSSQLSERVER
PASSPHRASE: *****
QUIET: False
QUIETSIMPLE: True
RULES: GlobalRules
UIMODE: AutoAdvance
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20130121_112907\ConfigurationFile.ini
Detailed results:
Rules with failures:
Global rules:
There are no scenario-specific rules.
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20130121_112907\SystemConfigurationCheck_Report.htm
Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented
Exception type: System.InvalidOperationException
Message:
Value Dispose() cannot be called while doing CreateHandle().
Data:
DisableWatson = true
Stack:
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at Microsoft.SqlServer.Configuration.UIExtension.UserInterfaceScheduler.Dispose(Boolean disposing)
at Microsoft.SqlServer.Configuration.UIExtension.Scheduler.System.IDisposable.Dispose()
at Microsoft.SqlServer.Configuration.UIExtension.UserInterfaceProxy.Stop()
at Microsoft.SqlServer.Configuration.UIExtension.UserInterfaceService.Stop()
at Microsoft.SqlServer.Configuration.UIExtension.StopAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)