I am trying to package an application with jpackage for windows. I am using java 19 and wix 4.
Package Id Version Commands
---------------------------------------------
wix 4.0.0-preview.1 wix
java 19.0.1 2022-10-18
Java(TM) SE Runtime Environment (build 19.0.1+10-21)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
According to the Packaging Tool User's Guide, the requirements for generating an installation package for windows are:
WiX 3.0 or later is required.
However, when trying to generate a package I get an error:
[09:26:34.026] Can not find WiX tools (light.exe, candle.exe)
[09:26:34.026] Download WiX 3.0 or later from https://wixtoolset.org and add it to the PATH.
The very nature of the problem is clear. package does not support wix 4, although it is not written anywhere in plain text.
The solution is also clear, I install wix 3. However, here comes the "problem". Wix 3 requires an old version of .Net (3.5.1) or at least "windows features .net 3.5.1". However, this is what I want to avoid.
My question is, as of today, is there a way to directly use wix 4 with jpackage?