How do I disable the creation of the uninstaller during installation?

I know I can disable it in the build with <createuninstaller>0</createuninstaller> but need to disable its creation in certain circumstances.

Deleting it and manifest files after installation is not an option as ${installdir} does not exist - in certain circumstances the installer adds a plugin (contained within the installer but extracted to a temporary directory) to an existing Eclipse installation using Eclipse's p2 installer, so nothing is "installed" in the traditionaly InstallBuilder way.

I tried ${project.createUninstaller}=0 but the variable appears to be read-only.

As a work-around I conditionally exit as the last action in the post-installation actions (action group with an info dialog confirming install and exit), but it would be nice to have the final frame rather than a small info dialog.

asked 29 Jun '16, 10:56

ams001's gravatar image

ams001
16224
accept rate: 0%

edited 29 Jun '16, 11:36


Please note that in order to overwrite the project property you would need to do it without using the dollar symbol and curly braces. Please find below an example:

<postInstallationActionList> ... <setInstallerVariable name="project.createUninstaller" value="0"/> </postInstallactionActionList>

Could you check if using this <setInstallerVariable> action as the last one in your <postinstallationactionlist> works for you?

link

answered 01 Jul '16, 05:12

alejandror's gravatar image

alejandror ♦♦
1.3k127
accept rate: 31%

Your answer
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:

×83
×3

Asked: 29 Jun '16, 10:56

Seen: 317 times

Last updated: 01 Jul '16, 05:12