Blog链接:https://blog.51cto.com/13969817


今天有学员在部署SharePoint on premise时遇到了问题,需要卸载,但卸载SharePoint时却弹出错误提示:One or more required Office Components failed to complete successfully. For more information, Consult the Setup log file.

SharePoint 解决方案:SharePoint 2016/2019 卸载时抛出异常_排错


按照提示,我们需要到setup log file去排错什么原因,如何解决?

  1. 在Run中输入%temp%切换到SharePoint配置的缓存文件夹下,没有看到任何关于以SharePoint ServerSetup (< time stamp>)命名的log
  2. 我们又尝试在网上查找相关的解决方案,发现通过修改注册表的setup type解决了问题,在Run中输入Regedit,进入注册表编辑窗格:

SharePoint 解决方案:SharePoint 2016/2019 卸载时抛出异常_排错_02

  1. HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web ServerExtensions\14.0\WSS,按此路径,右键点击SetupType,然后点击Modify,如下所示:

SharePoint 解决方案:SharePoint 2016/2019 卸载时抛出异常_排错_03

  1. 修改其键值为:CLEAN_INSTALL,点击OK,然后退出注册表

SharePoint 解决方案:SharePoint 2016/2019 卸载时抛出异常_卸载SharePoint_04

  1. 再次卸载SharePoint就成功了


SharePoint 配置和使用会遇到各种问题,希望总结出的解决方案,日后能帮助有遇到类似问题的朋友,也欢迎线下讨论。