edvin / fxldemo

FXLauncher demo application
Apache License 2.0
41 stars 19 forks source link

Two different versions with the same code #6

Closed ign4z closed 7 years ago

ign4z commented 7 years ago

Hi guys,

I need to create 2 versions of the same application and I need to install them in the same windows machine. The problem is that when i try to install the second application is saved in the same directory even if I changed the name of the application.

My installer plugin is following

`

installer install exec ${java.home}/../bin/javapackager -deploy -native -outdir ${app.installerdir} -outfile ${app.filename} -srcdir ${app.dir} -srcfiles fxlauncher.jar -appclass fxlauncher.Launcher -name ${project.artifactId} -title ${project.artifactId} -vendor ${app.vendor} -BappVersion=${app.version} -Bicon=${project.basedir}/package/${application.title} -v -BjvmOptions=-Xmx1G -BjvmOptions=-XX:+UseG1GC -BjvmOptions=-XX:+UseStringDeduplication

`

Loking at the inno setup file (.ISS) I found that the directory is correctly configured, but the AppId paramiter is the same :

[Setup] AppId={{fxlauncher}} AppName=prova Thank you.

edvin commented 7 years ago

Can you try to include <argument>-Bidentifier=${project.groupId}.${project.artifactId}</argument> in your build, like the fxldemo project does? Does that solve the issue?

ign4z commented 7 years ago

Oh yeah! Thank you! I tried to use <argument>-id</argument><argument>${project.artifactId}</argument> and it doesn't works.

It would be nice to have the complete documentation with all parameters 👍

edvin commented 7 years ago

The parameters is listed in the JavaPackager Docs, but we will soon introduce a Maven plugin that will make the whole thing much easier to reason about :)