javajavafxjavafx-8inno-setupjavapackager

Adding a desktop icon for a JavaFX native packaged app


I have a JavaFX app that I'm doing native packaging with. I'm packaging the app for Windows using the InnoSetup 5+ approach. How can I set up the installer so that it creates a desktop icon for the app?

Thanks.

Update: I'm not sure why this has been marked as a duplicate. I'm not using Java Web Start / JNLP (i.e. hosting my app in a web page), just native packaging for Windows to produce an .exe.


Solution

  • I was able to trigger desktop icon creation using javapackager -shortcutHint=true .... This works when creating .exe's and .msi's.

    See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javapackager.html.