当我尝试使用netbeans创建msi安装程序时,它显示了以下错误:

我安装了Wix3.8,并在我的路径中添加了"C:\Program (x86)\WiX v3.8\bin“。仍然IDE显示以下错误:

如何解决这个问题并为我的javaFX应用程序创建一个msi安装程序?任何人请帮助..。提前谢谢。
发布于 2014-03-14 08:53:10
这是因为candle.exe -的输出?命令不再匹配Ant目标
<target name="-check-WiX-presence" depends="-check-native-bundling-type" if="need.WiX.presence">
<local name="exec-output"/>
<local name="exec-error"/>
<local name="exec-result"/>
<exec executable="candle" outputproperty="exec-output" failifexecutionfails="false" errorproperty="exec-error" resultproperty="exec-result">
<arg value="-?"/>
</exec>
<echo message="exec-output:${exec-output}" level="verbose"/>
<echo message="exec-error:${exec-error}" level="verbose"/>
<echo message="exec-result:${exec-result}" level="verbose"/>
<condition property="missing.WiX">
<not><and>
<contains string="${exec-output}" substring="Windows Installer Xml Compiler"/>
<not><contains string="${exec-output}" substring="Windows Installer Xml Compiler version 1"/></not>
<not><contains string="${exec-output}" substring="Windows Installer Xml Compiler version 2"/></not>
</and></not>
</condition>
</target> 这就是WiX 3.8的输出:WindowsInstallerXMLToolsetCompilerVersion3.8.1128.0版权(c)外部基础。版权所有。
所以把条件固定到
<contains string="${exec-output}" substring="Windows Installer XML Toolset Compiler"/>在buil-native.xml中,将解决这个问题。
发布于 2015-11-22 08:51:45
下面的行也很好。
<contains string="${exec-output}" substring="Windows Installer XML" casesensitive="false"/>
https://stackoverflow.com/questions/20314211
复制相似问题