从 Sharepoint 2010 卸载 Web 部件

发布于 2024-10-30 19:19:13 字数 58 浏览 3 评论 0原文

如何从 Sharepoint Server 2010 卸载自定义 Web 部件?

谢谢

How can I uninstall a Custom Webpart from Sharepoint Server 2010?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

ゃ懵逼小萝莉 2024-11-06 19:19:13

您可以从以下位置管理 Web 部件:

  • 管理中心
    • 系统设置
      • 管理农场解决方案
        • 选择 Web 部件

并单击“撤回解决方案”。

You can manage webparts from:

  • Central Administration
    • System Settings
      • Manage Farm Solutions
        • Select the WebPart

and click "Retract Solution".

暗地喜欢 2024-11-06 19:19:13

使用 PowerShell 命令添加/删除或升级解决方案///

添加解决方案

Add-SPSolution PATH

部署解决方案

Install-SPSolution SolutionPackage.wsp –WebApplication servername –GACDeployment  

卸载解决方案

Uninstall-SPSolution SolutionPackage.wsp –WebApplication servername

删除解决方案

Remove-SPSolution SolutionPackage.wsp

Install-SPSolution –Identity $solutionName  -Webapplication $webapplication -GACdeployment

Use PowerShell commands to add/remove or upgrade solution///

Adding Solution

Add-SPSolution PATH

Deploying solution

Install-SPSolution SolutionPackage.wsp –WebApplication servername –GACDeployment  

Uninstalling solution

Uninstall-SPSolution SolutionPackage.wsp –WebApplication servername

Removing solution

Remove-SPSolution SolutionPackage.wsp

Install-SPSolution –Identity $solutionName  -Webapplication $webapplication -GACdeployment
芯好空 2024-11-06 19:19:13

我想添加与问题相关的链接。 Beytan Kurt 是对的,但如果您尝试在页面中添加新的 Web 部件,您会注意到“类别”部分中仍然引用了该 Web 部件。我发布的这个链接将为您提供完整的解释为什么 Web 部件仍然引用类别部分。它还将帮助您从场解决方案中完全删除 Web 部件。这是链接

最好的问候,
斯特凡·乔诺夫

I would like to add link related with the question. Beytan Kurt is right but if you try to add a new web part in your page you will notice there in the Category section it still have reference to the web part. This link which I post it will give you a full explanation why the web part still have reference into Category section. Also it will help you to fully remove the web part from your farm solution. This is the link .

Best Regards,
Stefan Chonov

枕花眠 2024-11-06 19:19:13

由于以下错误,我无法通过管理中心和 Power Shell 撤回解决方案:

Uninstall-SPSolution:必须运行管理 SVC 才能创建
部署计时器作业。

撤回正在计划中,但根本没有执行。

因此,我以管理员身份打开 SharePoint Power Shell,并在安排撤回后键入以下命令:

stsadm.exe -o execadmsvcjobs

此命令强制执行所有管理计划作业,因此撤回效果良好。它适用于安装和卸载 Web 部件。祝你好运。

I was unable to retract solution both by Central Administration and by Power Shell due the following error:

Uninstall-SPSolution : Admin SVC must be running in order to create
deployment timer job.

The retract was being scheduled but not executed at all.

So, I opened the SharePoint Power Shell as administrator and typed the following command after schedule my retract:

stsadm.exe -o execadmsvcjobs

This command force all the admin scheduled jobs to be executed, so the retract worked good. It works for install and uninstall a web part. Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文