我在 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 文件。
可能是什么问题?
谢谢!
编辑:路径没有问题。我也尝试过绝对路径,没有任何变化。