Hi Davide,

jpackage doesn't provide built-in support to run just installed application. However, it can build an installer from custom WiX sources.  You can use the default main WiX source from [1] (assume you use jpackage from jdk21) and adjust it to suit your needs. Solutions to automatically run an .exe file after installation are discussed at [2].  Say you have your custom "main.wxs" saved in "custom" directory, then run your jpackage command line with extra "--resource-dir custom" arguments. This will force jpackage to use your custom main WiX source "main.wxs" from the "custom" directory instead of the default one.

[1] https://github.com/openjdk/jdk21u-dev/blob/master/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs [2] https://stackoverflow.com/questions/19271862/wix-how-to-run-exe-files-after-installation-from-installed-directory

- Alexey

As subject.
I created an exe installare using jpackage and wix but there is no option during the installation process to run the application once the installation is finished.

Is it possible to run the app once installation finished?

If yes, how?
This is important because I would like to launch the installation in silent mode "for the auto update" feature.


Thanks
Davide

Reply via email to