如何在wix中复制文件夹 [英] How do copy a folder in wix

查看:49
本文介绍了如何在wix中复制文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Wix 安装程序复制程序文件文件夹下的文件夹.但我无法对整个文件夹执行此操作.我只能通过逐个文件来完成.

I'm using Wix Installer to copy a folder under program files folder. But I couldn't do it for entire folder. I can do it only by file by file basis.

我很感激这方面的任何帮助

I would appreciate any help on this regard

推荐答案

<Directory Id="CopyTestDir"...>

<Property Id="SOURCEDIRECTORY" Value="c:\doc\bin\path" />

<Component Guid="A7C42303-1D77-4C70-8D5C-0FD0F9158EB4" Id="CopyComponent">
    <CopyFile Id="SomeId" SourceProperty="SOURCEDIRECTORY"
      DestinationDirectory="CopyTestDir" SourceName="*" />
 </Component>

虽然它不处理子目录.如果您没有已知目录源文件的结构,那么你需要追求半定制动作方法,将条目写入每个目录的 MoveFile 表.

It doesn't handle subdirectories though. If you don't have a known directory structure for the source files, then you'll need to pursue the semi-custom action approach, writing entries into the MoveFile table for each directory.

来源

这篇关于如何在wix中复制文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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