Using jpackage 24 with WiX Toolset 5 or 6, how can I start the app automatically after installation is complete?

Davide Perini perini.davide at dpsoftware.org
Mon Jun 23 14:26:37 UTC 2025


As subject.

Using jpackage 24 with WiX Toolset 5 or 6,
how can I start the app automatically after installation is complete?

As title, is this possible?

At the moment I generate my installer with this command:

jpackage -i target --type exe --main-class org.dpsoftware.JavaFXStarter 
--main-jar FireflyLuciferin-jar-with-dependencies.jar --win-menu 
--win-menu-group Luciferin --copyright "Davide Perini" --name "Firefly 
Luciferin"  --vendor DPsoftware --win-dir-chooser --win-shortcut 
--win-per-user-install --win-upgrade-uuid 
33c82dc4-e0e0-11ea-87d0-0242ac130003 --app-version "0.0.5" 
--win-shortcut --win-shortcut-prompt --java-options "-XX:+UseZGC 
-XX:+UseStringDeduplication -Xms64m -Xmx1024m"

How can I customize the installer to launch the application once the 
installation is finished?

Thanks
Davide


More information about the core-libs-dev mailing list