<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Davide,<br>
<br>
jpackage doesn't provide built-in support to run just installed
application. However, it can build an installer from custom WiX
sources.<br>
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].<br>
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.<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jdk21u-dev/blob/master/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs">https://github.com/openjdk/jdk21u-dev/blob/master/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/19271862/wix-how-to-run-exe-files-after-installation-from-installed-directory">https://stackoverflow.com/questions/19271862/wix-how-to-run-exe-files-after-installation-from-installed-directory</a><br>
<br>
- Alexey<br>
<br>
<blockquote type="cite" cite="mid:DM6PR10MB4345560CEF27D3F33F24051B96AF2@DM6PR10MB4345.namprd10.prod.outlook.com">
<div id="mail-editor-reference-message-container" class="ms-outlook-mobile-reference-message">
<p>As subject.<br>
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.</p>
<p>Is it possible to run the app once installation finished?<br>
<br>
If yes, how?<br>
This is important because I would like to launch the
installation in silent mode "for the auto update" feature.</p>
<p><br>
Thanks<br>
Davide</p>
</div>
</blockquote>
</body>
</html>