RFR: 8319457: Update jpackage to support WiX v4 and v5 on Windows
Alexey Semenyuk
asemenyuk at openjdk.org
Thu Jun 6 12:43:46 UTC 2024
On Wed, 5 Jun 2024 19:31:57 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> jpackage allows override of main WiX source file (main.wxs), do you know what will happen if user will add main.wxs with format features available only in WiX 5 and will have WiX 5 toolkit installed?
jpackage will detect the custom main.wxs is WiX4 format and pass it as is to `wix.exe`. I.e. custom WiX5 main.wxs will work with WiX5 toolkit.
However, it will fail if they try using custom main.wxs with WiX5-specific features with WiX4 toolkit. But this is out of the scope of jpackage.
> Do you know if there any benefits to use any features available in WiX5 if WiX5 toolkit is installed, instead of using only WiX4 features with WiX5 toolkit?
As far as I can tell from https://wixtoolset.org/docs/fivefour/, WiX5 reduces the redundancy of source files compared to WiX4. I can see how people handwriting sophisticated WiX source files can benefit from these improvements, not jpackage. The default main.wxs and two dialogs jpackage supplies are very basic and other sources are generated.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19318#issuecomment-2152309900
More information about the core-libs-dev
mailing list