Fwd: jpackage and Wix 5

Alexey Semenyuk alexey.semenyuk at oracle.com
Wed Mar 26 22:16:47 UTC 2025


Davide,

I replied to your question in the core-libs-dev mailing list. See [1]. 
Please lets continue the discussion there.

[1] https://mail.openjdk.org/pipermail/core-libs-dev/2025-March/141394.html

- Alexey

On 3/26/2025 11:29 AM, Victor D'yakov wrote:
>
>
> Alexey, could you reply on core-libs list?
>
> Victor
> -------- Forwarded Message --------
> Subject: 	Re: jpackage and Wix 5
> Date: 	Wed, 26 Mar 2025 14:47:16 +0100
> From: 	Davide Perini <perini.davide at dpsoftware.org>
> To: 	client-libs-dev at openjdk.org
>
>
>
> If I use Wix 3 it works correctly,
> are we sure that jpackage 24 supports Wix 5?
>
> Is this a bug in the jpacakge command?
>
>
> On 2025-03-19 11:45, Davide Perini wrote:
>
>>
>>
>> Il 19/03/2025 11:19, Davide Perini ha scritto:
>>> I add some context:
>>>
>>> I installed wix 5 using the donet command globally,
>>> wix is in the path but when I try to run my jpackage command I get 
>>> this error:
>>>
>>> jpackage -i ./target --type exe --main-class 
>>> org.dpsoftware.JavaFXStarter --main-jar 
>>> FireflyLuciferin-jar-with-dependencies.jar --icon 
>>> ./data/img/luciferin_logo.ico
>>>  --win-menu --win-menu-group Ambilight --copyright "Davide Perini" 
>>> --name "Firefly Luciferin"  --vendor DPsoftware --win-dir-chooser 
>>> --win-shortcut --win-per-user-install --win-shortcut 
>>> --win-shortcut-prompt --java-options "-XX:+UseZGC -Xms64m -Xmx1024m"
>>>
>>>
>>> java.io.IOException: Command [wix.exe, build, -nologo, -pdbtype, 
>>> none, -intermediatefolder, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\wixobj, 
>>> -ext, WixToolset.Util.wixext, -arch, x64, -ext, WixToolset.UI
>>> .wixext, -b, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config, 
>>> -loc, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\MsiInstallerStrings_de.wxl, 
>>> -loc, C:\Users\SBLANT~1\AppData\
>>> Local\Temp\jdk.jpackage95160440034084538\config\MsiInstallerStrings_en.wxl, 
>>> -loc, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\MsiInstallerStrings_ja.wxl, 
>>> -loc, C:\Users\SBLANT~1\AppData\Local\Temp\j
>>> dk.jpackage95160440034084538\config\MsiInstallerStrings_zh_CN.wxl, 
>>> -culture, en-us, -d, JpAppDescription=Firefly Luciferin, -d, 
>>> JpStartMenuShortcutPrompt=yes, -d, JpDesktopShortcutPrompt=yes, -d, 
>>> JpProductCode=e0be8901-8911-3da4
>>> -83e2-2c15892e1623, -d, JpAppName=Firefly Luciferin, -d, 
>>> JpAllowDowngrades=yes, -d, 
>>> JpIcon=C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\images\win-msi.image\Firefly 
>>> Luciferin\Firefly Luciferin.exe, -d, JpAp
>>> pSizeKb=409283, -d, JpAppVersion=1.0, -d, 
>>> JpAfterInstallDirDlg=ShortcutPromptDlg, -d, JpAllowUpgrades=yes, -d, 
>>> JpProductUpgradeCode=2b8902a1-d85a-3650-9b08-d990b365e5e9, -d, 
>>> JpAppVendor=DPsoftware, -d, JpConfigDir=C:\Users\SBLAN
>>> T~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\main.wxs, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\bundle.wx 
>>> f, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\ui.wxf, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\config\ShortcutPromptDlg.wxs, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpack
>>> age95160440034084538\config\InstallDirNotEmptyDlg.wxs, -out, 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\wixobj\a.msi] 
>>> in 
>>> C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage95160440034084538\images\win-msi.image\Firefly 
>>> Luciferin exited with 144 code
>>>
>>>
>>> Il 19/03/2025 10:12, Davide Perini ha scritto:
>>>>
>>>> Hi there,
>>>>
>>>> I'm using jpackage along with Wix3.
>>>>
>>>> The command I use to generate my .exe is:
>>>>           jpackage -i ../../target --type exe --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 Luciferin --copyright "Davide Perini" --name 
>>>> "Firefly Luciferin"  --vendor DPsoftware --win-dir-chooser 
>>>> --win-shortcut --win-per-user-install --win-upgrade-uuid myuuid 
>>>> --app-version "${{steps.get-id.outputs.id}}" --win-shortcut 
>>>> --win-shortcut-prompt --java-options "-XX:+UseZGC 
>>>> -XX:+UseStringDeduplication -Xms64m -Xmx1024m 
>>>> --add-modules=jdk.incubator.vector"
>>>>
>>>> How can I move it to Wix5 using Java 24?
>>>>
>>>> Is there a guide/documentation that help in migrating from Wix 3 to 
>>>> Wix 5?
>>>>
>>>> Thanks
>>>> Davide
>>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250326/c559dca1/attachment-0001.htm>


More information about the core-libs-dev mailing list