[Jpackage + Wix] How to run exe files after installation from installed directory?
Alexey Semenyuk
alexey.semenyuk at oracle.com
Wed Apr 2 15:28:34 UTC 2025
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20250402/53017fb9/attachment-0001.htm>
More information about the client-libs-dev
mailing list