如今的Server用Windows Server 2012 R2的愈來愈多了,在部署帶Sp1的SharePoint2013的時候,走完預安裝工具後,點擊setup提示缺乏。net4.5。 其實Windows Server 2012 R2打完全部更新補丁後,操做系統的.net版本已是4.6.1了,由於。net4.6是os的組件的一部分,因此沒法直接卸載,也不能單獨去手工安裝。net4.5安裝包。 經過dotnetfx_cleanup_tool 卸載失敗了。 2種解決辦法: a. 修改註冊表: 1.Run regedt32 as administrator (best method is to browse to system32 directory and right click) 2.Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\ 3.Export the key (and all subs) for safekeeping •Especially import to get these 2 keys that you will be editing •HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full 4.Right click on v4 and choose Permissions •Click Advanced •If the owner is listed as System you may have to change to the local administrator group (or account you using to edit the registry) and choose 「Replace Owner on subcontainers and objects」. 5.Right click on Client key and choose Permissions. Grant your group/account full control. 6.Make note of the value for the version entry – keep it somewhere safe. 7.Change the value to 4.5.50709 – minimum version required for SharePoint 2013. You can use this version or another valid version above that but not any 4.6 values. 8.Right click on Full key and choose Permissions. Grant your group/account full control. 9.Make note of the value for the version entry – keep it somewhere safe. 10.Change the value to 4.5.50709 11.Run SharePoint install. 12.When the install is finished, before running config wizard, you can either run the reg file you created in Step 3 or manually set the version values back to the value as noted in Step 9. 13.If you changed the owner as outlined in step 4, be sure to set it back to System and choose 「Replace Owner on subcontainers and objects」. b. 更新安裝補丁: 找到你安裝的軟件版本,選擇下面一個補丁文件到本地 •SharePoint Foundation 2013 with Service Pack 1 fix https://download.microsoft.com/download/3/6/2/362C4A9C-4AFE-425E-825F-369D34D64F4E/wsssetup_15-0-4709-1000_x64.zip •SharePoint Server 2013 with Service Pack 1 fix https://download.microsoft.com/download/3/6/2/362C4A9C-4AFE-425E-825F-369D34D64F4E/svrsetup_15-0-4709-1000_x64.zip •Project Server 2013 with Service Pack 1 fix https://download.microsoft.com/download/3/6/2/362C4A9C-4AFE-425E-825F-369D34D64F4E/svrsetup_15-0-4709-1000_x64.zip 拷貝解壓縮的dll到SharePoint 2013 ios或者img解開後的updates文件夾中,再次啓動setup安裝,經過了。 推薦方案b。