安装SQL Server 2012 RTM遇到"Microsoft .NET Framework 4.0 installation has failed with exit code 1642"的解决方案
2012-03-23 00:55
561 查看
上次在虚拟机的Windows Server 2008上安装Sql Server 2012 RTM时十分顺利,今天在另个一台Windows Server 2008上安装SQl Server 2012时却遇到了麻烦,错误提示:“Microsoft .NET Framework 4.0 installation has failed with exit code 1642”
经过比较分析,后者安装了visual Studio 2010 SP1和SQL Server 2008 r2 SP1。
卸载SQL Server 2008 r2 及SP1后重新安装,错误依然。
卸载visual Studio 2010 及SP1后重新安装,错误依然。
用Windows Install Clean Up卸载所有与这两项有关的项后重新安装,错误依然。
最后,想到这可能是.NET Framework 4.0.30319 SP1版本高于SQL Server 2012安装包中的.NET Framework 4.0.30319,因而导致冲突。于是:
在控制页面板中:删除"Microsoft .NET Framework 4 Extended"及“Microsoft .NET Framework 4 Client Profile”,还有“Microsoft .NET Framework 4 Multi-Targeting Pack”共三项,注意,要先将其恢复至原始状态,再删除,否则无法删除。
重新启动然后重新安装,一次成功!
再重新安装Visual Studio 2010 SP1,以顺便升级.NET Framework 4.0.30319 SP1。
后参考这两篇文章,发现有另外方法亦可一试:
http://connect.microsoft.com/SQLServer/feedback/details/712945/sql-2012-rc0-install-fails-with-net-4-0-error
http://www.ninjacode.com.br/post/2012/01/16/Microsoft-NET-Framework-40-installation-has-failed-with-exit-code-1642.aspx
主要是解决注册表以下三键:
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2533523" /v ThisVersionInstalled /t REG_SZ /d "Y"
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2544514" /v ThisVersionInstalled /t REG_SZ /d "Y"
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871" /v ThisVersionInstalled /t REG_SZ /d "Y"
说明:
1、前面一项是针对Framework 4.0的SP1版本,后两项是针对Framework 4.5的预览版,其目的是让安装程序跳过检查。
2、64位的系统需要创建64位的注册键。
经过比较分析,后者安装了visual Studio 2010 SP1和SQL Server 2008 r2 SP1。
卸载SQL Server 2008 r2 及SP1后重新安装,错误依然。
卸载visual Studio 2010 及SP1后重新安装,错误依然。
用Windows Install Clean Up卸载所有与这两项有关的项后重新安装,错误依然。
最后,想到这可能是.NET Framework 4.0.30319 SP1版本高于SQL Server 2012安装包中的.NET Framework 4.0.30319,因而导致冲突。于是:
在控制页面板中:删除"Microsoft .NET Framework 4 Extended"及“Microsoft .NET Framework 4 Client Profile”,还有“Microsoft .NET Framework 4 Multi-Targeting Pack”共三项,注意,要先将其恢复至原始状态,再删除,否则无法删除。
重新启动然后重新安装,一次成功!
再重新安装Visual Studio 2010 SP1,以顺便升级.NET Framework 4.0.30319 SP1。
后参考这两篇文章,发现有另外方法亦可一试:
http://connect.microsoft.com/SQLServer/feedback/details/712945/sql-2012-rc0-install-fails-with-net-4-0-error
http://www.ninjacode.com.br/post/2012/01/16/Microsoft-NET-Framework-40-installation-has-failed-with-exit-code-1642.aspx
主要是解决注册表以下三键:
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2533523" /v ThisVersionInstalled /t REG_SZ /d "Y"
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2544514" /v ThisVersionInstalled /t REG_SZ /d "Y"
reg add "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871" /v ThisVersionInstalled /t REG_SZ /d "Y"
说明:
1、前面一项是针对Framework 4.0的SP1版本,后两项是针对Framework 4.5的预览版,其目的是让安装程序跳过检查。
2、64位的系统需要创建64位的注册键。
相关文章推荐
- 安装SQL Server 2012 RTM遇到"Microsoft .NET Framework 4.0 installation has failed with exit code 1642"的解决
- Unable to install SQL Server (setup.exe), VS Shell installation has failed with exit code 1638.
- 安装ubuntu10.10时遇到ubi partman crashed,ubi-partman failed with exit code 141的解决方案
- 安装了VS2010 sp1 后再安装ASP.NET MVC 3.0的问题(Final Result: Installation failed with error code: (0x80070643), "安装时发生严重错误 " (Ela)
- 安装了VS2010 sp1 后再安装ASP.NET MVC 3.0的问题(Final Result: Installation failed with error code: (0x80070643), "安装时发生严重错误 " (Ela)
- .net framework 无法安装 installation failed for component RGB Rast. MSI returned error code 1603
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- SQL Server 2008 setup fails with a Microsoft .NET Framework exception -- Configuration system failed to initialize
- 安装sql server 2012提示microsoft.net framework 3.5 service
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- 我遇到的错误:“Linker command failed with exit code 1” 的解决方案
- microsoft.net framework 4.0安装失败-NET Framework 更新安装错误:"0x80070643"
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- virtualbox 安装 extension pack 方法以及出现 "The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one"的解决办法
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- Fedora19安装smplayer后遇到"Mplayer has finished unexpectedly. Exit code 127"的错误
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- eclipse安装时出现Installation failed with an error(解决方案)
- CentOs安装Scrapy出现error: Setup script exited with error: command ‘gcc’ failed with exit status 1错误解决方案