Error while installing SQL Server 2022(Express Edition)

Mohd Azam Ikhwal Bin Azmi 6 Reputation points
2022-12-19T06:24:16.09+00:00

Kindly need help with SQL 2022 installation process.

This is my summary.txt file,

Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068774911
Exit facility code: 1201
Exit error code: 1
Exit message: Invalid class
Start time: 2022-12-19 13:49:40
End time: 2022-12-19 13:49:43
Requested action: RunRules
Exception help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=0xE8049925%400x42B4DED7&EvtType=0xE8049925%400x42B4DED7

Machine Properties:
Machine name: DESKTOP-NPQ9PS1
Machine processor count: 4

Below is my detail.txt file,

(01) 2022-12-19 13:49:42 Slp: The following exception occurred while preparing status logs during Watson failure processing: Invalid class
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to write hklm registry key Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20221219_134937\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to write hklm registry key Uninstall to file C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20221219_134937\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
(01) 2022-12-19 13:49:42 Slp: Sco: Unable to open hklm registry key SOFTWARE\Microsoft\MSSQLServer, error The system cannot find the file specified.

(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to write hklm registry key Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20221219_134937\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL Server.reg_
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to write hklm registry key Uninstall to file C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20221219_134937\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
(01) 2022-12-19 13:49:42 Slp: Sco: Unable to open hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer, error The system cannot find the file specified.

(01) 2022-12-19 13:49:42 Slp: Invalid class
(01) 2022-12-19 13:49:42 Slp: Watson bucket for exception based failure has been created
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\160
(01) 2022-12-19 13:49:42 Slp: Sco: Attempting to get registry value EnableErrorReporting
(01) 2022-12-19 13:49:42 Slp: WER: Successfully read app consent from registry Software\Microsoft\Microsoft SQL Server\160\EnableErrorReporting=1.
(01) 2022-12-19 13:49:42 Slp: WER: Application level consent value '1' was mapped to consent status 'WerConsentApproved'
(01) 2022-12-19 13:49:43 Slp: WER: Result of the submission:: 'WerReportQueued'
(01) 2022-12-19 13:49:43 Slp: WER: Submitted 1 of 1 failures to the Watson data repository
(01) 2022-12-19 13:49:43 Slp:
(01) 2022-12-19 13:49:43 Slp: ----------------------------------------------------------------------
(01) 2022-12-19 13:49:43 Slp:
(01) 2022-12-19 13:49:43 Slp: Error result: -2068774911
(01) 2022-12-19 13:49:43 Slp: Result facility code: 1201
(01) 2022-12-19 13:49:43 Slp: Result error code: 1
(01) 2022-12-19 13:49:43 Slp: SetupTelemetry: Closing Telemetry Session
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\SQMClient
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to get registry value MachineId
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\160
(01) 2022-12-19 13:49:43 Slp: SetupTelemetry: Not creating telemetry audit log. Value 'UserRequestedLocalAuditDirectory' doesn't exist in 'HKLM\Software\Microsoft\Microsoft SQL Server\160'
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\160
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to get registry value CustomerFeedback
(01) 2022-12-19 13:49:43 Slp: Sco: Attempting to get registry value EnableErrorReporting
(01) 2022-12-19 13:49:43 Slp: SetupTelemetry: Telemetry has an active session with 7 events.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,855 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,927 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,640 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,471 Reputation points
    2022-12-21T11:39:23.727+00:00

    Hi @Mohd Azam Ikhwal Bin Azmi ,

    Nothing in particular was found to cause this installation to fail. But you can look at the prerequisites for SQL Server 2022.
    SQL Server 2022: Hardware and software requirements
    If all conditions are met, you can try to uninstall and reinstall.
    Here are the steps to uninstall cleanly.

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit:
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    6. Reboot the machine
      In addition, please use an administrator account to reinstall SQL Server on your computer (Right click->run as administrator).

    Best regards,
    Seeya

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Ijaz Muhammad 81 Reputation points
    2024-07-10T12:15:29.9633333+00:00

    I am trying the below solution. If it is successful, then I will update here.

    Here are the steps to uninstall cleanly.

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit: --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    6. Reboot the machine In addition, please use an administrator account to reinstall SQL Server on your computer (Right click->run as administrator).
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.