此 WSP 卸载脚本完整吗?
我正在使用以下脚本来卸载 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,顺序不正确,您应该是:
另外,您是否尝试在卸载和安装之间运行 IISReset?
It seems to me that the order is incorrect , you should be:
Also, Have you tried running an IISReset between the uninstall and the install?
除了在停用功能之前删除软件包之外,这看起来足够完整。但是,停用某个功能并不一定会删除该功能安装的所有内容。在 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.