安装时将文件从安装位置复制到 wix 中的另一个位置
我创建了一个 msi
安装文件,其中包含“Sample”文件夹中的一些文件,应将其复制到 temp 文件夹中。有人建议如何做到这一点吗?
I have created an msi
setup file which includes some files in a "Sample" folder which should be copied to a temp folder. Anybody suggest how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
类似这样:
重要的 Xml 元素是 CopyFile。您需要创建一个新组件,它是第一个组件的副本(当然具有不同的 id、guid……)。这两个组件都需要在功能中声明。
Something like this:
The important Xml element is CopyFile. You need to create a new component that is a copy of the first one (with different ids, guids, ... of course). Both components needs to be declared in a feature.
CopyFile 元素是你的朋友。您可以将其多次嵌套在原始 File 元素下,具体取决于方式很多时候你需要复制它。放置正确的目标文件夹,然后让 Windows Installer 完成其余的工作。
CopyFile element is your friend. You can nest it under the original File element a number of times, depending on how many times you need to copy it. Put the correct destination folder(s) and let Windows Installer do the rest.