JavaFX Tutorial 60 - MSI Installer for JavaFX 8 Application

preview_player
Показать описание
In this tutorial I will show you how to create a MSI installer for JavaFX application on Windows 10 x64. As of JavaFX 2.2, in order to generate a MSI package, you must have WiX Toolset 3.7 or higher installed and available on the PATH.

To install WiX Toolset Setup:

2. Double-click the file to launch the installer.
3. Follow the instructions in the install wizard for installing WiX Toolset.

To add WiX Toolset to the system Path variable:

1. On Windows 10, Computer, Properties, System Properties, Advanced system settings.
2. Select the Advanced tab and click the Environment Variables button.
3. In the System Variables pane, double-click the PATH variable.
4. In the Edit System Variable dialog box, add a semicolon followed by a new path to the Variable value field. for example, C:\Program Files (x86)\WiX Toolset v3.11\bin
5. Click OK to close all the open dialog boxes.

To create MSI Packaging in JavaFX Projects
1. Right-click the project node in the Projects window and select Properties from the context menu.
2. In the Project Properties dialog box, choose Deployment in the Build category and select the Enable Native Packaging option.
3. Click OK.
4. To clean and build your project, Choose Run, Clean and Build Project from the main menu.

For example,

These instructions will produce a self-contained application package in the form of a .msi file

By default, system-wide installation, System-wide installation results in a package installed into a shared location and can be used by any user on the system.

%ProgramFiles%

e.g. C:\Program Files

Q: I got an error of
JavaFX deployment library not found in active JDK.
Please check that the JDK is correctly installed and its version is at least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 2 seconds)

A: Try to use JDK 8.

#javafx #msiinstaller #WiXToolset
Рекомендации по теме
Комментарии
Автор

I have tried the same process in netbeans 8.2 nut had 3:error invoking method and Failed to launch JVM

theophilusopokumensah
Автор

I have successfully created the setup and run perfectly but when I link the app with MySQL database, I encounter the following: error invoking method and Failed to launch JVM

theophilusopokumensah
Автор

How to create countur line on netbeanst..?

alamsekitar
Автор

I have done as you have done in this video in netbeans 8.2 and had the following error: 1. Error invoking method 2. Failed to launch JVM. What could be my problem, is it the version of my netbeans?

theophilusopokumensah
Автор

i have this error, you already agree with the path in that error:
Bundler MSI Installer skipped because of a configuration problem: Can not find WiX tools (light.exe, candle.exe).
Launching <fx:deploy> task from C:\Program

jhancarlosilvaochoa