Hi Davide,
jpackage should work seamlessly with WiX5. Could you run your jpackage
command with `--verbose` arg? It will provide a context for the error.
- Alexey
On 3/19/2025 6:19 AM, Davide Perini wrote:
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