<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p data-start="127" data-end="184">Hi Alexey,<br data-start="137"
        data-end="140">
      <code data-start="140" data-end="158">--win-menu-group</code>
      works as you described.</p>
    <p data-start="186" data-end="270">I thought that option could be
      used to place my app in the right Windows category in the Start
      Menu.</p>
    <span style="white-space: nowrap;"><img moz-do-not-send="true"
src="https://www.windowslatest.com/wp-content/uploads/2025/04/Start-menu-category-layout-for-all-apps-768x784.jpg"
        alt=""><br>
      <br>
    </span>Is there a way to tell <code data-start="295" data-end="305">jpackage</code>
    to put my app in the <em data-start="327" data-end="342">Entertainment</em>
    category inside the start menu?<br data-start="352" data-end="355">
    Possibly by using a <code data-start="375" data-end="381">.wxs</code>
    file?<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Il 27/10/2025 18:19, Alexey Semenyuk ha
      scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c30e6a6b-9e89-4b93-841f-407ad65e1532@oracle.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi Davide,<br>
      <br>
      <span style="white-space: nowrap;">--win-menu-group option
        controls a subdirectory in Windows Start Menu directory where to
        install links to application launchers.<br>
        <br>
        In case of system-wide installation, the full path to the
        directory with application launchers is:<br>
        %ProgramData%\Microsoft\Windows\Start
        Menu\Programs\<win-menu-group><br>
        <br>
        In case of per-user installation the full path to the directory
        with application launchers is:<br>
        %AppData%\Microsoft\Windows\Start
        Menu\Programs\<win-menu-group><br>
        <br>
        Say, the value of --win-menu-group is "Entertainment", then in
        the standard Windows installation, the directories will be:<br>
        C:\ProgramData\Microsoft\Windows\Start
        Menu\Programs\Entertainment<br>
        C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start
        Menu\Programs\Entertainment<br>
        <br>
        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.<br>
      </span><br>
      - Alexey<br>
      <br>
      <div class="moz-cite-prefix">On 10/23/2025 11:07 AM, Davide Perini
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:d08950921a9109e3d7e3b1692f52f7e3@dpsoftware.org">
        <p>Hi <span>Alexey,</span></p>
        <p><span>thanks for the answer.<br>
            <br>
            I'm using the latest from <br>
            Temurin (25.0.0+36-LTS)<br>
            <br>
            I have tried the latest 25 from Zulu and same problem.<br>
            <br>
            Thanks<br>
            Davide</span></p>
        <p id="reply-intro">On 2025-10-23 13:56, Alexey Semenyuk wrote:</p>
        <blockquote type="cite"
style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
          <div class="pre"
            style="margin: 0; padding: 0; font-family: monospace"><span
              style="white-space: nowrap;">Hi Davide,</span><br>
            <br>
            <span style="white-space: nowrap;">It looks like a jpackage issue. What version of jpackage do you use?</span><br>
            <br>
            <span style="white-space: nowrap;">- Alexey</span><br>
            <br>
            <span style="white-space: nowrap;">On 10/23/2025 6:23 AM, Davide Perini wrote:</span>
            <blockquote type="cite"
style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span
                style="white-space: nowrap;">Hi there,</span><br>
              <span style="white-space: nowrap;">I'm using Jpackage with a command like this:</span><br>
              <br>
              <span style="white-space: nowrap;">jpackage -i target --type exe --resource-dir build_tools/wix \</span><br>
              <span style="white-space: nowrap;">--main-class org.dpsoftware.JavaFXStarter \</span><br>
              <span style="white-space: nowrap;">--main-jar FireflyLuciferin-jar-with-dependencies.jar \</span><br>
              <span style="white-space: nowrap;">--icon data/img/java_fast_screen_capture_logo.ico \</span><br>
              <span style="white-space: nowrap;">--win-menu \</span><br>
              <span style="white-space: nowrap;">--win-menu-group Entertainment \</span><br>
              <span style="white-space: nowrap;">--win-shortcut \</span><br>
              <span style="white-space: nowrap;">--win-shortcut-prompt \</span><br>
              <span style="white-space: nowrap;">--win-dir-chooser \</span><br>
              <span style="white-space: nowrap;">--win-upgrade-uuid myid \</span><br>
              <span style="white-space: nowrap;">--copyright "Davide Perini" \</span><br>
              <span style="white-space: nowrap;">--name "Firefly Luciferin" \</span><br>
              <span style="white-space: nowrap;">--vendor DPsoftware \</span><br>
              <span style="white-space: nowrap;">--app-version "2.0.0" \</span><br>
              --java-options "-XX:+UseZGC -XX:+UseStringDeduplication
              -Xms64m -Xmx1024m \<br>
              --add-modules=jdk.incubator.vector
              --enable-native-access=org.dpsoftware \<br>
              <span style="white-space: nowrap;">--enable-native-access=ALL-UNNAMED --enable-native-access=com.sun.jna \</span><br>
              --enable-native-access=javafx.graphics
              --enable-native-access=javafx.web \<br>
              <span style="white-space: nowrap;">--enable-native-access=com.fazecast.jSerialComm"</span><br>
              <br>
              <br>
              <span style="white-space: nowrap;">My main.wxs file can be found here:</span><br>
              <a
href="https://urldefense.com/v3/__https://github.com/sblantipodi/build_tools/blob/4f99c29440d27f3ff800d2cf2698f80433bce64c/wix/main.wxs__;!!ACWV5N9M2RV99hQ!MsfDO_olPPH4L0-ubfnS2AEm3tkSPuuH0YDV_IcV91g1SD2SvJn_SUKtm4acAe2wXm6SK-ydF27EzE5aNUj96MypqsCUJ1n6ig$"
                target="_blank" rel="noopener noreferrer"
                moz-do-not-send="true">https://github.com/sblantipodi/build_tools/blob/4f99c29440d27f3ff800d2cf2698f80433bce64c/wix/main.wxs</a>
              It’s the default one generated by jpackage, with a small
              modification that adds a checkbox to launch the app after
              installation.<br>
              <br>
              <span style="white-space: nowrap;">As you can see, the --win-menu-group is set to "Entertainment",</span><br>
              but on Windows 11 25H2, my app still appears under the
              "Other" category in the Start menu.<br>
              <br>
              <span style="white-space: nowrap;">Is this a jpackage issue?</span><br>
              <br>
              Thanks<br>
              Davide</blockquote>
          </div>
        </blockquote>
        <p><br>
        </p>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>