Domanda

I've used the NetBeans tool to wrap Swing applications with a native installer. However, all applications seem to install to the same destination folder on Windows and it isn't clear to me where to configure this.

I'm assuming the installer accepts a universal unique identifier for potential upgrades to the application that might change its name and that identifier is identical between both installers. I can't seem to find where such an identifier is defined though?

È stato utile?

Soluzione

The JavaFX packager determines the install target directory based on the vendor name specified for creating the package. The application name is used as the name for the shortcut to your application.

I assume you are using the JavaFX ant task to create the installer. In that case, you would have a build target setting up the FX task like this:

<fx:deploy ... >
    <fx:application name="${application.title}" mainClass="..." />
    <fx:info title="${application.title}" vendor="${application.vendor}" />
    [...]
</fx:deploy>

In that case, you would need to set the ${application.vendor} property to whatever you want as the target directory.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top