title: SQL Server 2008 unattached installation setting IACCEPTSQLSERVERLICENSETERMS not recognized
body: <p>I am trying to install SQL Server 2008 Express but I always get this error:</p>
  
  <p>SQL Server Setup has encountered the following error:</p>
  
  <p>The setting 'IACCEPTSQLSERVERLICENSETERMS' specified is not recognized.</p>
  
  <p>Error code 0x84B40003.</p>
  
  <p>My code is here:</p>
  
  <pre><code>Public NotInheritable Class MSSQL2008CommandlineInstaller
  
      Shared WithEvents process As New Process()
  
      Private Sub New()
      End Sub
      Const MSSQL_SERVER_VERSION As String = "SQLSERVER2008"
      Const MSSQL_INSTALLER_APP As String = "C:\Users\Hello\Desktop\SQLEXPR_x86_ENU.exe"
  
      Public Shared Function Install(ByVal saPassword As String, ByVal instanceName As String) As Integer
          Dim configFileName As String = Directory.GetCurrentDirectory() &amp; "\MSSQLInstallationConfig.ini"
  
          CreateMsSQLConfigurationFile(configFileName, instanceName)
          Return StartInstallation(MSSQL_INSTALLER_APP, saPassword, configFileName)
      End Function
  
      Private Shared Function StartInstallation(ByVal installerApplication As String, ByVal saPassword As String, ByVal configFileName As String) As Integer
          Using process
              process.StartInfo = New ProcessStartInfo(installerApplication)
              process.StartInfo.Arguments = "/SAPWD=""" &amp; saPassword &amp; """ /CONFIGURATIONFILE=""" &amp; configFileName &amp; """"
              process.StartInfo.UseShellExecute = False
              process.StartInfo.RedirectStandardOutput = True
              process.StartInfo.RedirectStandardError = True
              process.StartInfo.CreateNoWindow = True
              process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
              process.Start()
              process.BeginOutputReadLine()
              process.BeginErrorReadLine()
              process.WaitForExit()
              Dim exitCode As Integer = process.ExitCode
              process.Close()
              Return exitCode
          End Using
      End Function
  
      Public Shared Sub OnOutputDataReceived(ByVal sender As Object, ByVal e As DataReceivedEventArgs) Handles process.OutputDataReceived
          If Not [String].IsNullOrEmpty(e.Data) Then
              Console.WriteLine("Output: " &amp; Convert.ToString(e.Data))
          End If
      End Sub
  
      Public Shared Sub OnErrorDataReceived(ByVal sender As Object, ByVal e As DataReceivedEventArgs) Handles process.ErrorDataReceived
          If Not [String].IsNullOrEmpty(e.Data) Then
              Console.WriteLine("Error: " &amp; Convert.ToString(e.Data))
          End If
      End Sub
  
      Private Shared Sub CreateMsSQLConfigurationFile(ByVal fileName As String, ByVal instanceName As String)
          Using configFile = New FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None)
              Dim writer As New StreamWriter(configFile)
              writer.WriteLine("[" &amp; MSSQL_SERVER_VERSION &amp; "]")
              writer.WriteLine("INSTANCEID=""" &amp; instanceName &amp; """")
              writer.WriteLine("INSTANCENAME=""" &amp; instanceName &amp; """")
              writer.WriteLine("ACTION=""Install""")
              writer.WriteLine("FEATURES=SQLENGINE")
              writer.WriteLine("HIDECONSOLE=""True""")
              writer.WriteLine("QUIET=""False""")
              writer.WriteLine("QUIETSIMPLE=""False""")
              writer.WriteLine("HELP=""False""")
              writer.WriteLine("INDICATEPROGRESS=""True""")
              writer.WriteLine("X86=""False""")
              writer.WriteLine("IACCEPTSQLSERVERLICENSETERMS=""True""")
              writer.WriteLine("ROLE=""AllFeatures_WithDefaults""")
              writer.WriteLine("ENU=""True""")
              writer.WriteLine("ERRORREPORTING=""False""")
              writer.WriteLine("SQMREPORTING=""False""")
              writer.WriteLine("AGTSVCACCOUNT=""NT AUTHORITY\NETWORK SERVICE""")
              writer.WriteLine("AGTSVCSTARTUPTYPE=""Automatic""")
              writer.WriteLine("SQLSVCACCOUNT=""NT AUTHORITY\NETWORK SERVICE""")
              writer.WriteLine("SQLSVCSTARTUPTYPE=""Automatic""")
              writer.WriteLine("SECURITYMODE=""SQL""")
              writer.WriteLine("ADDCURRENTUSERASSQLADMIN=""True""")
              writer.WriteLine("FILESTREAMLEVEL=""0""")
              writer.WriteLine("ENABLERANU=""True""")
              writer.WriteLine("SQLCOLLATION=""SQL_Latin1_General_CP1_CI_AS""")
              writer.WriteLine("TCPENABLED=""1""")
              writer.WriteLine("NPENABLED=""1""")
              writer.WriteLine("BROWSERSVCSTARTUPTYPE=""Automatic""")
              writer.Flush()
          End Using
      End Sub
  End Class
  </code></pre>