[External] : Re: [jpackage] Windows 11 25H2 ignores the win-menu-group option
Davide Perini
perini.davide at dpsoftware.org
Mon Oct 27 19:36:29 UTC 2025
Hi Alexey,
|--win-menu-group| works as you described.
I thought that option could be used to place my app in the right Windows
category in the Start Menu.
Is there a way to tell |jpackage| to put my app in the /Entertainment/
category inside the start menu?
Possibly by using a |.wxs| file?
Il 27/10/2025 18:19, Alexey Semenyuk ha scritto:
> Hi Davide,
>
> --win-menu-group option controls a subdirectory in Windows Start Menu
> directory where to install links to application launchers.
>
> In case of system-wide installation, the full path to the directory
> with application launchers is:
> %ProgramData%\Microsoft\Windows\Start Menu\Programs\<win-menu-group>
>
> In case of per-user installation the full path to the directory with
> application launchers is:
> %AppData%\Microsoft\Windows\Start Menu\Programs\<win-menu-group>
>
> Say, the value of --win-menu-group is "Entertainment", then in the
> standard Windows installation, the directories will be:
> C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Entertainment
> C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start
> Menu\Programs\Entertainment
>
> There are automated tests to verify that jpackage behaves as described
> above. They are part of the JDK build. I also ran manual testing and
> it works as expected.
>
> - Alexey
>
> On 10/23/2025 11:07 AM, Davide Perini wrote:
>>
>> Hi Alexey,
>>
>> thanks for the answer.
>>
>> I'm using the latest from
>> Temurin (25.0.0+36-LTS)
>>
>> I have tried the latest 25 from Zulu and same problem.
>>
>> Thanks
>> Davide
>>
>> On 2025-10-23 13:56, Alexey Semenyuk wrote:
>>
>>> Hi Davide,
>>>
>>> It looks like a jpackage issue. What version of jpackage do you use?
>>>
>>> - Alexey
>>>
>>> On 10/23/2025 6:23 AM, Davide Perini wrote:
>>>> Hi there,
>>>> I'm using Jpackage with a command like this:
>>>>
>>>> jpackage -i target --type exe --resource-dir build_tools/wix \
>>>> --main-class org.dpsoftware.JavaFXStarter \
>>>> --main-jar FireflyLuciferin-jar-with-dependencies.jar \
>>>> --icon data/img/java_fast_screen_capture_logo.ico \
>>>> --win-menu \
>>>> --win-menu-group Entertainment \
>>>> --win-shortcut \
>>>> --win-shortcut-prompt \
>>>> --win-dir-chooser \
>>>> --win-upgrade-uuid myid \
>>>> --copyright "Davide Perini" \
>>>> --name "Firefly Luciferin" \
>>>> --vendor DPsoftware \
>>>> --app-version "2.0.0" \
>>>> --java-options "-XX:+UseZGC -XX:+UseStringDeduplication -Xms64m
>>>> -Xmx1024m \
>>>> --add-modules=jdk.incubator.vector
>>>> --enable-native-access=org.dpsoftware \
>>>> --enable-native-access=ALL-UNNAMED --enable-native-access=com.sun.jna \
>>>> --enable-native-access=javafx.graphics
>>>> --enable-native-access=javafx.web \
>>>> --enable-native-access=com.fazecast.jSerialComm"
>>>>
>>>>
>>>> My main.wxs file can be found here:
>>>> https://github.com/sblantipodi/build_tools/blob/4f99c29440d27f3ff800d2cf2698f80433bce64c/wix/main.wxs
>>>> <https://urldefense.com/v3/__https://github.com/sblantipodi/build_tools/blob/4f99c29440d27f3ff800d2cf2698f80433bce64c/wix/main.wxs__;!!ACWV5N9M2RV99hQ!MsfDO_olPPH4L0-ubfnS2AEm3tkSPuuH0YDV_IcV91g1SD2SvJn_SUKtm4acAe2wXm6SK-ydF27EzE5aNUj96MypqsCUJ1n6ig$>
>>>> It’s the default one generated by jpackage, with a small
>>>> modification that adds a checkbox to launch the app after installation.
>>>>
>>>> As you can see, the --win-menu-group is set to "Entertainment",
>>>> but on Windows 11 25H2, my app still appears under the "Other"
>>>> category in the Start menu.
>>>>
>>>> Is this a jpackage issue?
>>>>
>>>> Thanks
>>>> Davide
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20251027/31019758/attachment.htm>
More information about the core-libs-dev
mailing list