exe installers created by jpackage don't propagate a status code of uninstallation command. They return 0 in case of clean uninstall and -1 otherwise. There is no way to figure out the reason for uninstallation failure from the exit code of exe installer.
In case of uninstallation failure, a message box is displayed. This defeats the ability to use jpackage-generated exe installers in batch execution.
The fix must transform the uninstallation status code into exe installer's exit code and exe installer must not have UI when used for uninstallation.
In case of uninstallation failure, a message box is displayed. This defeats the ability to use jpackage-generated exe installers in batch execution.
The fix must transform the uninstallation status code into exe installer's exit code and exe installer must not have UI when used for uninstallation.