卸载后如何让WiX留下文件? [英] How to make WiX leave files after uninstall?

查看:30
本文介绍了卸载后如何让WiX留下文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Is there a way to NOT delete files after an uninstall?

解决方案

Set the Component value Permanent="yes" like so:

<Component Id="LicenseDoc" Guid="*" Permanent="yes">
    <File Id ="License.rtf" Source="$(var.SolutionDir)InstallerLicense.rtf" />
</Component>

Remarks:

  • This definition has to be done in the installed MSI as well as the upgrading MSI. If the base MSI did not have a component Id this file will be deleted regardless of the Permanent="yes"

这篇关于卸载后如何让WiX留下文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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