此 WSP 卸载脚本完整吗?

发布于 2024-08-22 20:07:55 字数 658 浏览 2 评论 0原文

我正在使用以下脚本来卸载 wsp 工作流程功能。请有人检查并确认它是否包含卸载所需的所有步骤。

我很怀疑,因为当我运行这个卸载脚本并安装新版本的 wsp 时;工作流程的行为仍然与以前的安装类似(意味着工作流程未显示新行为),因此我认为我可能在卸载时做错了什么,因为以前版本的工作流程未从文档中完全删除图书馆....

     @SET serverName="http://myservername/"
@SET TWELVEDIR="c:\program files\common files\microsoft shared\web server extensions\12\"
@SET STSADM="C:\SP\SP\stsadm"

REGEDIT /S Previous_Settings.reg


%STSADM% -o retractsolution -name MoveToFolder.wsp -immediate
%STSADM% -o deletesolution -name MoveToFolder.wsp



%STSADM% -o execadmsvcjobs


%STSADM% -o deactivatefeature -name MoveToFolder -url %serverName%
%STSADM% -o uninstallfeature -name MoveToFolder 

I am using the following script for uninstallation of a wsp workflow feature. Please can someone check and confirm that it contains all the required steps for the uninstallation or not.

I am doubtful because when i run this uninstallation script and install the new version of the wsp; the workflow still behaves similar to what it did with the previous installation (means the new behavior is not shown by the workflow) so i think i might b doing something wrong in the uninstallation because the previous version of workflow is not completely removed from the document library....

     @SET serverName="http://myservername/"
@SET TWELVEDIR="c:\program files\common files\microsoft shared\web server extensions\12\"
@SET STSADM="C:\SP\SP\stsadm"

REGEDIT /S Previous_Settings.reg


%STSADM% -o retractsolution -name MoveToFolder.wsp -immediate
%STSADM% -o deletesolution -name MoveToFolder.wsp



%STSADM% -o execadmsvcjobs


%STSADM% -o deactivatefeature -name MoveToFolder -url %serverName%
%STSADM% -o uninstallfeature -name MoveToFolder 

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

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

发布评论

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

评论(2

夏尔 2024-08-29 20:07:55

在我看来,顺序不正确,您应该是:

%STSADM% -o deactivatefeature -name MoveToFolder -url %serverName%
%STSADM% -o uninstallfeature -name MoveToFolder 
%STSADM% -o retractsolution -name MoveToFolder.wsp -immediate
%STSADM% -o deletesolution -name MoveToFolder.wsp

%STSADM% -o execadmsvcjobs

另外,您是否尝试在卸载和安装之间运行 IISReset?

It seems to me that the order is incorrect , you should be:

%STSADM% -o deactivatefeature -name MoveToFolder -url %serverName%
%STSADM% -o uninstallfeature -name MoveToFolder 
%STSADM% -o retractsolution -name MoveToFolder.wsp -immediate
%STSADM% -o deletesolution -name MoveToFolder.wsp

%STSADM% -o execadmsvcjobs

Also, Have you tried running an IISReset between the uninstall and the install?

一张白纸 2024-08-29 20:07:55

除了在停用功能之前删除软件包之外,这看起来足够完整。但是,停用某个功能并不一定会删除该功能安装的所有内容。在 iis 重新启动之前,代码不会更新,并且复制到列表实例中的任何内容都将保留在那里。此外,之前序列化的任何 v1 工作流程将保持不变。

Aside from removing the package before deactivating the features, that looks complete enough. However, deactivating a feature will not necessarily remove everything that was installed by that feature. Code will not update until iis restarts, and anything that was copied into a list instance will stay there. Also, any v1 workflows that were serialized earlier will remain unchanged.

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