HanSolo / JDKMon

A little tool written in JavaFX that monitors your installed JDK's and inform you about updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application not launched after installation (windows msi installer)

mattiasbe opened this issue · comments

After installing (windows, msi installer) nothing happens. User expectation is usually that the app is launched or at the very least have an app shortcut available somewhere (meny and or desktop).
Now you have to open an file explorer, go to c:\program files\jdk mon and launch it yourself. No launcher shortcut in the menu or desktop.

Need to check if there is the ability to add that behavior when creating the msi package but it might not be possible

I'm afraid this is not possible with the current solution, at least I did not found a way to configure it, sorry.

Seems to be an option to jpackage for linux and windows to create short cuts and another for adding it to the menus at least:
https://docs.oracle.com/en/java/javase/16/jpackage/manage-installation.html#GUID-E0E57A9E-CE36-48CE-8882-8AFB912B0E25

To have a shortcut created when users install your application, use the --linux-shortcut or --win-shortcut option when you package your application. To show a custom icon for your application, use the --icon option.

Shortcuts are supported for Linux and Windows platforms. If you don't provide an icon, a default icon is used. If you provide a custom icon on Linux, a shortcut is automatically created and the --linux-shortcut option is not needed. Custom icons must be in a format that meets the requirements of the platform.
The following command creates a...

And also:

Add the Application to a Menu
To let users access your application from a menu, use the --linux-menu-group option, or the --win-menu and --win-menu-group options when you package your application.