WiX:如果虚拟目录包含嵌套目录,如何跳过删除 iis:WebVirtualDir? [英] WiX: how to skip removing of iis:WebVirtualDir if virtual directory contains nested directories?

查看:30
本文介绍了WiX:如果虚拟目录包含嵌套目录,如何跳过删除 iis:WebVirtualDir?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 msi 安装和卸载共享资源:IIS 虚拟目录MyTeamServices".它工作得很好,除了在卸载过程中删除该虚拟目录,即使有人创建了嵌套的虚拟目录(不是使用安装程序,只是手动").当我希望看到 WiX 处理 HDD 文件夹的标准行为时:如果里面有下落不明"的文件 - 不要删除文件夹.

My msi install and uninstall a shared resource: IIS virtual directory "MyTeamServices". And it works very well except it removes that virtual directory during uninstall process even if somebody have created nested virtual directories (not by using installers, just "by hands"). When I expect to see standard behavior of WiX processing HDD folders : if there are "unaccounted" files inside - do not remove folder.

你能告诉我如何解决这个小问题(而不是使用永久"属性)吗?

Could you get me ideas how to solve this little problem (and not by using "permanent" attribute)?

特别是:

1) 如何使用 WiX 源了解卸载 WebVirtualDir 期间的标准行为(并可能对其进行修补)?我看到 ParseWebVirtualDirElement 但这并没有让我更接近 IIS 管理操作.它们在哪里,如何挖掘它们?

1) How to work with WiX sources to understand what is standard behavior during uninstall of WebVirtualDir (and may be patch it)? I see the ParseWebVirtualDirElement but that not make me closer to IIS management actions. Where they are, how to dig out them?

2) 我还可以编写自定义操作,如果虚拟目录包含意外的内部"内容,则可以发出警报,但是在哪里调用它,然后如何跳过 WebVirtualDir 卸载?可以卸载组件,但应该跳过 WebVirtualDir 卸载过程的操作...或者我应该在那里玩 msi功能",例如将此组件移动到功能然后以某种方式跳过功能的卸载?

2) I could also write custom action that could alarm if virtual directory contains something unexpected "inside", but where to call it, and how then skip WebVirtualDir uninstall ? Component can be uninstalled but the actions of WebVirtualDir uninstall process should be skipped... Or I should play there with msi "features",e.g Move this component to feature and then somehow to skip feauture's uninstallation?

推荐答案

请参阅链接问题中的答案.它将引用计数带入 IIS 虚拟目录 - 如果被其他产品使用,它们不会被删除.

See the answer in the linked question. It brings reference count into IIS virtual directory - they won't be deleted if it is used by another product.

这篇关于WiX:如果虚拟目录包含嵌套目录,如何跳过删除 iis:WebVirtualDir?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆