带有Netbeans 10.0桌面快捷方式问题的JDK 8.202 MSI安装程序部署

时间:2019-01-30 08:31:30

标签: java netbeans deployment windows-installer

在netbeans 10中,我编写了一个Java应用程序,它运行良好。我正在使用JDK x64 8.202。我想将其部署为MSI安装程序,我已按照该步骤进行操作并在Internet上搜索,发现我必须添加以下代码到build.xml文件中,以在启动MSI安装程序时实现创建桌面快捷方式。

<project name="xxxxxx" default="default" basedir="." 
xmlns:fx="javafx:com.sun.javafx.tools.ant">
<description>Builds, tests, and runs the project xxxxxxxx.</description>
<import file="nbproject/build-impl.xml"/>
-->
<target name="-post-jfx-deploy">
   <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}" 
              nativeBundles="all"
              outdir="${basedir}/${dist.dir}" 
              outfile="${application.title}">
      <fx:application name="${application.title}" 
                      mainClass="${javafx.main.class}"/>
      <fx:resources>
          <fx:fileset dir="${basedir}/${dist.dir}"
                      includes="*.jar"/>
      </fx:resources>
      <fx:info title="${application.title}" 
               vendor="xxxxxxx"/>
      <fx:preferences shortcut="true" install="true" menu="true"/>
    </fx:deploy>          
 </target>
</project>

似乎没有任何效果,该程序被安装在C:\ Program Files \ xxxxxx目录下的相应文件夹中,但快捷方式从不在桌面上显示。

有人可以帮忙吗?预先感谢

0 个答案:

没有答案