win 10 安装 sql 2014 报错 1639
问题描述:
- 在一台64位 Windows 10 专业版的机器上安装 SQL Server 2014 企业版,安装过程出现以下错误:
PerfLib 2.0 计数器 removal 失败,退出代码为 2。命令行: C:\WINDOWS\system32\unlodctr.exe /m:hkengperfctr.xml
- 根据安装结束后的
Summary.txt日志,看到错误代码为 1639 的信息:
Feature: 数据库引擎服务
Status: 失败: 请查看日志了解详细信息
Reason for failure: 在此功能的安装过程中出错。
Next Step: 使用以下信息解决错误,然后再次尝试运行安装过程。
Component name: SQL Server 数据库引擎服务实例功能
Component error code: 1639
Component log file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20250331_191512\sql_engine_core_inst_Cpu64_1.log
Error description: 无效的命令行参数。有关详细的命令行帮助,请查阅 Windows Installer 的 SDK。
- 根据上面的信息,查看
sql_engine_core_inst_Cpu64_1.log信息如下:
=== Verbose logging started: 2025/3/31 19:19:54 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014\x64\ScenarioEngine.exe ===
MSI (c) (78:E4) [19:19:54:082]: Resetting cached policy values
MSI (c) (78:E4) [19:19:54:082]: Machine policy value 'Debug' is 0
MSI (c) (78:E4) [19:19:54:082]: ******* RunEngine:
******* Product: F:\Tool\cn_sql_server_2014_enterprise_edition_x64_dvd_3932882\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (c) (78:E4) [19:19:54:082]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (78:E4) [19:19:54:082]: Grabbed execution mutex.
MSI (c) (78:E4) [19:19:54:116]: Cloaking enabled.
MSI (c) (78:E4) [19:19:54:116]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (78:E4) [19:19:54:117]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (F8:D4) [19:19:54:122]: Running installation inside multi-package transaction F:\Tool\cn_sql_server_2014_enterprise_edition_x64_dvd_3932882\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
MSI (s) (F8:D4) [19:19:54:122]: Grabbed execution mutex.
MSI (s) (F8:3C) [19:19:54:123]: Resetting cached policy values
MSI (s) (F8:3C) [19:19:54:123]: Machine policy value 'Debug' is 0
MSI (s) (F8:3C) [19:19:54:123]: ******* RunEngine:
******* Product: F:\Tool\cn_sql_server_2014_enterprise_edition_x64_dvd_3932882\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (s) (F8:3C) [19:19:54:124]: Machine policy value 'TransformsSecure' is 0
MSI (s) (F8:3C) [19:19:54:124]: User policy value 'TransformsAtSource' is 0
MSI (s) (F8:3C) [19:19:54:143]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (F8:3C) [19:19:54:143]: Specified instance {17531BCD-C627-46A2-9F1E-7CC920E0E94A} via transform :InstID01.mst;:InstName01.mst is already installed. MSINEWINSTANCE requires a new instance that is not installed.
MSI (s) (F8:3C) [19:19:54:143]: MainEngineThread is returning 1639
MSI (s) (F8:D4) [19:19:54:143]: User policy value 'DisableRollback' is 0
MSI (s) (F8:D4) [19:19:54:143]: Machine policy value 'DisableRollback' is 0
MSI (s) (F8:D4) [19:19:54:143]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (F8:D4) [19:19:54:144]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (F8:D4) [19:19:54:144]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (F8:D4) [19:19:54:144]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (78:E4) [19:19:54:144]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (78:E4) [19:19:54:145]: MainEngineThread is returning 1639
=== Verbose logging stopped: 2025/3/31 19:19:54 ===
解决办法:
- 首先,根据 SQL Server 2014 硬件和软件要求 确认 Windows 10 专业版不支持安装 SQL Server 2014 企业版
- 随后,更改安装 SQL Server 2014 Express 仍报 1639 错误(疑似 SQL Server 2014 版本过久,与 Windows 10 有兼容性问题)
- 最后,更改安装 SQL Server 2016 Express 则成功了
