I've been trying to install SQL Server 2022 on Windows 10 Enterprise. Each time I try, the installer fails with error code 1639.
Each time I attempt to reinstall I
- Uninstall all SQL Server related items in the control panel
- Remove SQL Server folders in Program Files and Program Files (x86)
- Remove all registry keys related to SQL Server
This process follows https://www.sql-easy.com/learn/how-to-uninstall-sql-server/
I will attach the logs from C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20250721_145706
(01) 2025-07-21 14:57:31 Slp: Error result: -2068052377
(01) 2025-07-21 14:57:31 Slp: Result facility code: 1212
(01) 2025-07-21 14:57:31 Slp: Result error code: 1639
(01) 2025-07-21 14:57:31 Slp: WER: Application level consent value 'True' was mapped to consent status 'WerConsentApproved'
(01) 2025-07-21 14:57:32 Slp: WER: Result of the submission:: 'WerReportQueued'
(01) 2025-07-21 14:57:32 Slp: WER: Application level consent value 'True' was mapped to consent status 'WerConsentApproved'
(01) 2025-07-21 14:57:32 Slp: WER: Result of the submission:: 'WerReportQueued'
(01) 2025-07-21 14:57:32 Slp: WER: Application level consent value 'True' was mapped to consent status 'WerConsentApproved'
(01) 2025-07-21 14:57:32 Slp: WER: Result of the submission:: 'WerReportQueued'
(01) 2025-07-21 14:57:32 Slp: WER: Application level consent value 'True' was mapped to consent status 'WerConsentApproved'
(01) 2025-07-21 14:57:32 Slp: WER: Result of the submission:: 'WerReportQueued'
(01) 2025-07-21 14:57:32 Slp: WER: Submitted 4 of 4 failures to the Watson data repository
(01) 2025-07-21 14:57:32 Slp: SetupTelemetry: Closing Telemetry Session
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\SQMClient
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to get registry value MachineId
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\160
(01) 2025-07-21 14:57:32 Slp: SetupTelemetry: Not creating telemetry audit log. Value 'UserRequestedLocalAuditDirectory' doesn't exist in 'HKLM\Software\Microsoft\Microsoft SQL Server\160
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\160
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to get registry value CustomerFeedback
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to get registry value EnableErrorReporting
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2025-07-21 14:57:32 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2025-07-21 14:57:32 Slp: SetupTelemetry: Telemetry has an active session with 50 events.
Also, the logs from summary
Detailed results:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Component log file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20250721_145706\sql_engine_core_inst_Cpu64_1.log
Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639
Feature: SQL Browser
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: Setup Support Files
Status: Passed
Rules with failures or warnings:
Rules report file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20250721_145706\SystemConfigurationCheck_Report.htm