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>

alt text 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.

asked 22 Jan '16, 07:08

developer's gravatar image

developer
(suspended)
accept rate: 0%

any update?

(25 Jan '16, 08:37) developer
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×157
×13

Asked: 22 Jan '16, 07:08

Seen: 1,104 times

Last updated: 25 Jan '16, 08:37