JDK-8211282 : Support creation of 'exe' installers on Windows.
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-28
  • Updated: 2019-03-22
  • Resolved: 2018-10-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Relates :  
Relates :  
Description
jpackager currently does not support 'exe' installers on Windows platform,only 'msi' installers are supported..
The requirement to support 'exe' installers is included in the JEP (JDK-8200758).
javapackager in JDK10 does support crfeation of 'exe' installers. We need to port that support to the new jpackager.

This enhancement is for jpackager mode create-installer.
a follow-on enhancement, JDK-8200758 is filed for create-jdk-installer mode.
Comments
OK - have tested the following scenarios: 1.) building just an exe installer of simple app with "jpackager create-installer exe --input input --output output/test-exe --name test-exe --vendor "Oracle Test" --description "Test exe installer" --win-menu --main-jar hello.jar --class hello --files hello.jar" command. 1.a) running the created installer test-exe-1.0.exe. 1.b) running the created app from the windows menu shortcut "Oracle Test\test-exe". 1.c) uninstalling the app from the Windows ControlPanel. 2.) building just an msi installer of simple app with "jpackager create-installer msi --input input --output output/test-msi --name test-msi --vendor "Oracle Test" --description "Test msi installer" --win-menu --main-jar hello.jar --class hello --files hello.jar" command. 2.a) running the created installer msiexec -i test-msi-1.0.msi 2.b) running the created app from the windows menu shortcut "Oracle Test\test-msi". 2.c) uninstalling the app from the Windows ControlPanel. 3.) building both themsi and exe installers together with: "jpackager create-installer \ --input input \ --output output/test-inst \ --name test-inst \ --vendor "Oracle Test" \ --description "Test all installers" \ --win-menu \ --main-jar hello.jar \ --class hello \ --files hello.jar" 3.a) running the created exe installer test-inst-1.0.exe. 3.b) running the created app from the windows menu shortcut "Oracle Test\test-inst". 3.c) uninstalling the app from the Windows ControlPanel. 3.d) running the created msi installer msiexec -i test-inst-1.0.msi 3.d) running the created app from the windows menu shortcut "Oracle Test\test-inst". 3.e) uninstalling the app from the Windows ControlPanel. Crucible review: https://java.se.oracle.com/code/cru/CR-JDK-JDK-195
08-10-2018

need to restore the code from previous revision of javapackager
28-09-2018