OK, I just solved it. I'm posting this just in case someone else needs it in the future.
First of all the main JavaFX class must have the main method
public static void main( String[] args ) {
launch(args)
}
then in the Java Products page of the installer you must have a reference to the ...
FOLLOW US
Get the latest news in Application Packaging