[jpackage] Issue with upgrading from javapackager to jpackage on Windows

Daniel Peintner daniel.peintner at gmail.com
Mon Feb 17 14:32:14 UTC 2020


We are exploring to replace the *old* javapackager with the upcoming
jpackage tool and encounter an issue on Windows.

The javapackager tool allowed to create exe installers (by means of
InnoSetup) and msi installers using WiX toolkit. With jpackage the
InnoSetup exe installers were abandoned and instead WiX is used to create
msi and exe installers.

Until now we are shipping InnoSetup exe installers and tried to update now
with jpackage to msi installers. At first msi installation seems to work
fine (no error dialogs or so). When running the application it simply does
not start (Windows also shows it twice in the list of installed

The only *working* solution we found was to *manually* uninstall the old
application before starting msi installer.
Any future update with msi installers work fine. But the first update fails!

Since this seems a very common use-case I wonder whether there is a known
solution to this problem. Is this a known issue? Are there any practices
one can follow so that costumers do not need to manually uninstall the
existing application first.

Thanks for any hint/advice.

-- Daniel

P.S: If it helps to reproduce the issue I can setup a dummy project with
both installers, javapackager and jpackage.

More information about the core-libs-dev mailing list