【问题标题】:is it possible to copy entire foler to cab file in wix?是否可以将整个文件夹复制到wix中的cab文件?
【发布时间】:2017-08-03 05:32:04
【问题描述】:

如何在 WIX 中将整个文件夹添加到 cab 文件中? 让我有一个位于 path 的文件夹“images”

   D:/Solutions/mywpfapp/images

这个文件夹在我的项目中使用,我想使用它。 如果我想在我的安装程序 cab 文件中使用整个文件夹,我该怎么办?

我们可以像复制单个文件

   <Component Id="icudtl.dat" Guid="ff624052-41ce-4ec8-970b-e1c19cf47fa7">
    <File Id="icudtl.dat" Name="icudtl.dat" Source="$(var.engage.client.app_TargetDir)icudtl.dat" />
  </Component>

我听说过

 harvest

但是不知道怎么用,谁能帮帮我?

【问题讨论】:

    标签: wix windows-installer


    【解决方案1】:

    WiX Harvest Tool,Heat,可用于收集指定目录并为存在的每个文件生成 WiX 代码:

    heat.exe dir ".\HarvestDir" -ag -sfrag -out harvestout.wxs
    

    有关详细信息,请参阅 Heat 文档here

    【讨论】:

      猜你喜欢
      • 2015-08-16
      • 2019-01-02
      • 1970-01-01
      • 2018-03-08
      • 1970-01-01
      • 2010-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多