我在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文件。
有什么问题吗?
谢谢您!
编辑:路径没有问题。我也尝试过绝对路径,但没有改变。