来自msi位置的文件

时间:2010-03-01 06:54:58

标签: wix windows-installer location

我想将放在msi附近的文件复制到程序文件夹中。

我的项目中有下一个代码:

<DirectoryRef Id="Global.txt">
  <Component Id="Global.txt" Guid="263B6F39-BE6B-4b51-8AE4-4D152436F0AE" DiskId="2" NeverOverwrite="yes" Permanent="yes">
    <File Name="Global.txt" Source="./Global.txt" Compressed="no" DiskId="2"/>
  </Component>
</DirectoryRef>

问题是 - 需要将名为Global.txt的空文件放在开发机器上以构建msi。

我的问题有优雅的解决方案吗?

1 个答案:

答案 0 :(得分:0)

文件大小和修改日期经过哈希处理并嵌入到MSI中,如果您希望客户在创建MSI后编辑Global.txt,则需要更新MSI后期构建。

有关一种解决方案,请参阅Simplest solution to replace a tiny file inside an MSI?

相关问题