I have directory called 'scenarios' as part of my installation. Amongst the directories within the scenarios directory, there is one called 'user'. When users run my app after installation, they may generate data in any of the sub-directories contained within scenarios including the user directory. When uninstalling, I want to be able to delete all of the sub-directories (and their contents) under scenarios EXCEPT for 'user'. I try to do this with the following action prior to creating the uninstaller:


Despite having this action, ${installdir}/scenarios/user is still deleted. What am I doing wrong?

asked 11 Jul '12, 18:26

jalexrod's gravatar image

accept rate: 0%

I have also tried adding a removeFilesFromUninstaller option for ${installdir}/scenarios/user as follows, but this does not work either:

(11 Jul '12, 18:36) jalexrod

I believe the best solution is to first remove the "user" directory after it is created by the installer:


And then delete the scenarios folder in the <postUninstallationActionList> excluding the user directory:


answered 15 Jul '12, 15:05

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

This works for me, thanks!

(18 Jul '12, 14:36) jalexrod
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 11 Jul '12, 18:26

Seen: 1,533 times

Last updated: 18 Jul '12, 14:36