0

I'm using the JavaFX packager through the JavaFX-Gradle-Plugin and I need to add a couple of Wix extension libraries to be able to run my app after install.

How do I achieve that?

According to the Wix documentation, by adding -ext WixUIExtension -ext WixUtilExtension to the command line, but I don't see how to do it from the JavaFX packager nor JavaFX-Gradle-Plugin.

Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622

1 Answers1

1

After looking into the responsible msi-bundler, I found this fragment:

List<String> commandLine = new ArrayList<>();

// (...)
commandLine.add("-ext");
commandLine.add("WixUtilExtension");
if (enableLicenseUI || enableInstalldirUI) {
    commandLine.add("-ext");
    commandLine.add("WixUIExtension.dll");
}

// (...)

This means WixUtilExtension is always added, and when having the user to choose the installation target directory, the extension WixUIExtension gets added too.

To have the user choose the target installation directory, you have to set this inside the jfx-configuration-part:

jfx {
// ...
    bundleArguments = [
        'installdirChooser': true
    ]
// ...
}

https://github.com/FibreFoX/javafx-gradle-plugin/issues/101

Disclaimer: I'm the creator of the javafx-gradle-plugin

FibreFoX
  • 2,858
  • 1
  • 19
  • 41
  • Some additional note: it is not possible to pass additional parameters or extensions, this is a technical limitation how the bundler is implemented – FibreFoX Feb 09 '18 at 19:48