ADDITIONAL SYSTEM INFORMATION :
Windows 11 with OpenJDK24ea build 29 and Wix --version 5.0.2+aa65968c
A DESCRIPTION OF THE PROBLEM :
jpackage works fine with Wix Toolkit 3 for JDK14 through JDK23. I noticed from JDK24 release notes that build 2 contains changes to enable use with Wix4 and Wix5 "jpackage supports WiX Toolset v4 and v5 on Windows (JDK-8319457". After downloading Wix5, jpackage no longer generates installer.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use any working JDK23 project which works with jpackage to generate MSI. My project has one line "Hello world" class, built to a jar in folder "build\lib". Steps to jpackage with Wix3:
jpackage --app-version 25.01.0410 --win-console --dest "build/jpackage.dir" --java-options "-XshowSettings:all" --name "My Hello World" --input "build\lib" --main-jar helloworld.jar --type msi --main-class hello.Main
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
jpackage should create working MSI file in build/jpackage.dir.
ACTUAL -
When using same project with only Wix5 on the machine, the command gives error message:
java.io.IOException: Command [wix.exe, build, -nologo, -pdbtype, none, -intermediatefolder, ... , -out, C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\wixobj\a.msi] in C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\images\win-msi.image\My Hello World exited with 144 code
---------- BEGIN SOURCE ----------
package hello;
public class Main {
public static void main(String... args) {
System.out.println("Hello World");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Revert to Wix3
FREQUENCY : always
Windows 11 with OpenJDK24ea build 29 and Wix --version 5.0.2+aa65968c
A DESCRIPTION OF THE PROBLEM :
jpackage works fine with Wix Toolkit 3 for JDK14 through JDK23. I noticed from JDK24 release notes that build 2 contains changes to enable use with Wix4 and Wix5 "jpackage supports WiX Toolset v4 and v5 on Windows (
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use any working JDK23 project which works with jpackage to generate MSI. My project has one line "Hello world" class, built to a jar in folder "build\lib". Steps to jpackage with Wix3:
jpackage --app-version 25.01.0410 --win-console --dest "build/jpackage.dir" --java-options "-XshowSettings:all" --name "My Hello World" --input "build\lib" --main-jar helloworld.jar --type msi --main-class hello.Main
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
jpackage should create working MSI file in build/jpackage.dir.
ACTUAL -
When using same project with only Wix5 on the machine, the command gives error message:
java.io.IOException: Command [wix.exe, build, -nologo, -pdbtype, none, -intermediatefolder, ... , -out, C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\wixobj\a.msi] in C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\images\win-msi.image\My Hello World exited with 144 code
---------- BEGIN SOURCE ----------
package hello;
public class Main {
public static void main(String... args) {
System.out.println("Hello World");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Revert to Wix3
FREQUENCY : always
- relates to
-
JDK-8319457 Update jpackage to support WiX v4 and v5 on Windows
-
- Resolved
-