<distributionDirectory allowWildcards="1"> <deleteFile> <path>${installdir}/experts/FilestoKill*.MQ4</path> <ruleList> <fileExists> <path>${installdir}/experts/experts/FilestoKill*.MQ4</path> </fileExists> </ruleList> </deleteFile> </distributionDirectory> The Files being <deletefile> are no in the installer. they are old versions no made with bit rock

asked 26 May '13, 19:16

Jeff%20Crystal's gravatar image

Jeff Crystal
accept rate: 0%

Could you describe your question in more details? Do you want to delete files in installation directory before actual installation takes place?

If so, you can simply delete the files in <readyToInstallActionList> - for example:

<readyToInstallActionList> <deleteFile> <abortOnError>0</abortOnError> <showMessageOnError>0</showMessageOnError> <path>${installdir}/experts/FilestoKill*.MQ4</path> <ruleList> <fileExists> <path>${installdir}/experts/experts</path> </fileExists> </ruleList> </deleteFile> </readyToInstallActionList>

The <deleteFile> action accepts wildcards, however, the <fileexists> rule does not. So it is better to check if the directory exists and request deletion of all files matching pattern if it exists.

The <abortOnError> and <showMessageOnError> will prevent any error from showing up or breaking the currently run action list in case no files matching pattern are found.


answered 27 May '13, 09:41

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

All of the Files I need to Kill have a unique Name. Example the word red may be in file name. Before I used bit Rock I gave the files version numbers. I would like to Kill all the old files with that version number. They are not in the bit rock build and are just old files. What you laid out will work. Thanks....


answered 28 May '13, 22:24

Jeff%20Crystal's gravatar image

Jeff Crystal
accept rate: 0%

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: 26 May '13, 19:16

Seen: 985 times

Last updated: 28 May '13, 22:24