0

我在 Visual Studio 2010 的 WiX 和 .wxs 文件中有一个安装项目:

      <Directory Id="SOLVERSLOCATION" Name="Solvers" FileSource="$(var.Main.TargetDir)Solvers">
        <Component Id="CmpntSolvers" Guid="13C2AB0B-1AC1-4075-AC75-2716FE37F24A">
          <CreateFolder/>
        </Component>
      </Directory>

      <Directory Id="PLUGINSLOCATION" Name="Plugins" FileSource="$(var.Main.TargetDir)Plugins">
        <Component Id="CmpntPlugins" Guid="6B6BDF54-2A49-444E-8214-C856530D3BEB">
          <CreateFolder/>
        </Component>
      </Directory>

      ...
      <Feature ... >
      <ComponentRef Id="CmpntSolvers" />
      <ComponentRef Id="CmpntPlugins" />              
      </Feature ... >

问题是,虽然 PLUGINSLOCATION 的内容被添加到安装程序中,但根本没有添加 SOLVERSLOCATION 的内容。我不知所措是什么原因。文件夹中唯一的区别是PLUGINSLOCATION 只包含dll 文件,而在SOLVERSLOCATION 中是dll 文件、exe 文件和ini 文件。

可能是什么问题?

谢谢!

编辑:路径没有问题。我也尝试过绝对路径,没有任何变化。

4

1 回答 1

1

关于 FileSource 属性的文档并不多,但也许下一个链接可以帮助您。

Bob Arnson 的博客:Choosing-your-payloads

检查“覆盖隐式有效负载目录”标题,它讨论了 FileSource 属性及其预期的工作方式。但我建议你阅读整篇文章。

希望能帮助到你。

于 2010-07-07T14:58:37.747 回答