首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用netbeans IDE 7.4创建MSI安装程序

用netbeans IDE 7.4创建MSI安装程序
EN

Stack Overflow用户
提问于 2013-12-01 16:12:06
回答 2查看 2.9K关注 0票数 1

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

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

如何解决这个问题并为我的javaFX应用程序创建一个msi安装程序?任何人请帮助..。提前谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-03-14 08:53:10

这是因为candle.exe -的输出?命令不再匹配Ant目标

代码语言:javascript
复制
<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)外部基础。版权所有。

所以把条件固定到

代码语言:javascript
复制
<contains string="${exec-output}" substring="Windows Installer XML Toolset Compiler"/>

在buil-native.xml中,将解决这个问题。

票数 3
EN

Stack Overflow用户

发布于 2015-11-22 08:51:45

下面的行也很好。

代码语言:javascript
复制
<contains string="${exec-output}" substring="Windows Installer XML" casesensitive="false"/>

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20314211

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档