JavaFX的自安装用Inno Setup的5 - 放在哪里修改.iss文件? [英] JavaFX Self Installer With Inno Setup 5 - Where put the modify .iss file?

查看:772
本文介绍了JavaFX的自安装用Inno Setup的5 - 放在哪里修改.iss文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ant和创新安装建立一个自我为JavaFX应用程序部署EXE。

I am using Ant and Inno Setup to build a self deploying EXE for a JavaFX application.

有关更改安装文件夹,我按照这个话题的答案

For change the install folder I follow the answer of this topic

JavaFX的自安装用Inno Setup的5 - 允许用户更改安装目录

但要改变之后我现在一个问题,我不知道放在哪里完全新的.iss文件

But after make change I have now a problem i don't know where put exactly the new .iss file

我使用Eclipse,这是我的项目树:

I use eclipse, this is my project tree :

Quizz
|.settings
|bin
|build
  |build
  |deploy
    |bundles
        /* Exe here when I not change the iss file */
  |dist
  |project
  |build.xml
|src

这是我的ISS文件的一部分,当我运行他,他没有找到图标和exe文件。

This is a part of my iss file, when i run him he don't find the icon and the exe file.

    [Files]
    Source: "Quizz\Quizz.exe"; DestDir: "{app}"; Flags: ignoreversion
    Source: "Quizz\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

    [Icons]
    Name: "{group}\Quizz"; Filename: "{app}\Quizz.exe"; IconFilename: "{app}\Quizz.ico"; Check: returnTrue()
    Name: "{commondesktop}\Quizz"; Filename: "{app}\Quizz.exe";  IconFilename: "{app}\Quizz.ico"; Check: returnFalse()

   [Run]
    Filename: "{app}\Quizz.exe"; Parameters: "-Xappcds:generatecache"; Check: returnFalse()
    Filename: "{app}\Quizz.exe"; Description: "{cm:LaunchProgram,Quizz}"; Flags: nowait postinstall skipifsilent; Check: returnTrue()
    Filename: "{app}\Quizz.exe"; Parameters: "-install -svcName ""Quizz"" -svcDesc ""Quizz"" -mainExe ""Quizz.exe""  "; Check: returnFalse()

    [UninstallRun]
    Filename: "{app}\Quizz.exe "; Parameters: "-uninstall -svcName Quizz -stopOnUninstall"; Check: returnFalse()

所以,问题是我应该把国际空间站文件?

So the question is where I should put the iss file ?

如果有人能帮助我,他会非常非常好的。

If someone can help me he will be very very nice.

推荐答案

我没有找到答案,但我找到一个解决办法:

I didn't find the answer but i find a workaround :

我使用ant脚本生成.exe文件,在任务部署FX我改变本地捆绑所有的EXE代替。

I use ant script to generate the .exe, in the task fx deploy i change native bundles to all instead of exe.

    <fx:deploy 
      ...
      ...
      nativeBundles ="all"/>

所以,现在当我启动ant脚本创建他罐子,JNLP中,JRE和2 EXE:

So now when i launch ant script he create jar, jnlp, the jre and 2 exe :

    One exe are the setup who install the jar and jre in the bad folder
    Another who just launch de jar

第二个exe文件所使用的创新安装脚本,当你选择nativeBundles =EXE,他被删除生成的设置后。

The second exe is used by the Inno Setup script and when you choose nativeBundles="exe" he is deleted after generated setup.

因此​​,与nativeBundle =所有我是abble手动创建谁安装exe文件,并在良好的文件夹中的JRE的Inno Setup的脚本。

So with nativeBundle="All" I be abble to create manually an Inno Setup script who install the exe and the jre in the good folder.

希望我帮忙,对不起,英语不好

Hope I help, sorry for bad english

这篇关于JavaFX的自安装用Inno Setup的5 - 放在哪里修改.iss文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆