My installer launches Java launcher at the time of installation.
My java launcher is created in <postinstallationactionlist> and just after creating it run the launcher. see the below code.
<project>
...
<postInstallationActionList>
<createJavaLaunchers>
<destination>${installdir}</destination>
<javaLauncherList>
<javaLauncher>
<allowCommandLineArguments>1</allowCommandLineArguments>
<binaryName>MyLauncher</binaryName>
<arguments>${Myargument}</arguments>
<classpath></classpath>
<jarFile>${installdir}\register.jar</jarFile>
<mainClass></mainClass>
<preferredJavaBinary></preferredJavaBinary>
<runInBackground>1</runInBackground>
<runInConsole>1</runInConsole>
<usePropertiesFile>0</usePropertiesFile>
<vmParameters></vmParameters>
<windowsResourceFileVersion>1.0.0.0</windowsResourceFileVersion>
<workingDirectory>${installdir}</workingDirectory>
</javaLauncher>
</javaLauncherList>
</createJavaLaunchers>
<runProgram progressText="Launch ${project.fullName}">
<program>${installdir}\MyLauncher.exe</program>
</runProgram>
</postInstallationActionList>
</installationAbortedActionList>
<kill>
<path>${installdir}\MyLauncher.exe</path>
</kill>
</installationAbortedActionList>
...
</project>
In the screenshot you can see there are two windows one is main installer setup and one is java launcher.
If we click on close or cancel button of installer setup window then the popup come with a question "Do you want to abort the installation process?"
If we select "Yes" then installer abort the installation but launcher window will not close; so we also required java launcher window should close when aborting the installation.
I want the same action on the close button of java launcher window.
If we click on close button of java launcher window there should be a popup like an installer window close button.
We need to abort the installation process either of the installer setup window or java launcher window, as we click on any of the close buttons.