The following works on Linux. However, it fails on Windows. I tried replacing the leading dot (.) with an asterisk (*), but it also fails. I also tried quoting the string because ${installdir} has a space on Windows. It also failed. One interesting note, I'm testing the Windows version on the newest Wine 4.0. So, this might be a bug in Wine, not Windows.

<deleteFile>
  <path>${installdir}/plugins/.lastupdate</path>
<deleteFile>

asked 12 May '12, 08:56

tahoar's gravatar image

tahoar
201313236
accept rate: 42%


While Wine may be changing some of the behavior, the file may simply be reported as hidden by Windows API. Such files are not deleted using <deleteFile> action by default - you need to enable <matchHiddenFiles>. For example:

<deleteFile>
  <matchHiddenFiles>1</matchHiddenFiles>
  <path>${installdir}/plugins/.lastupdate</path>
<deleteFile>

Does the above delete the file correctly?

link

answered 14 May '12, 05:11

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Thanks, but I forgot to mention that I tried the <matchhiddenfiles> flag and it didn't work. I resolved the requirement with a different approach. I originally created the file using the <writefile> in the <postinstallationactionlist>. Now, I include a dummy .lastupdate file in the <folderlist> and the uninstaller automatically deletes the file without having to use <deletefile>.

(18 May '12, 04:33) tahoar
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:

×72
×14

Asked: 12 May '12, 08:56

Seen: 1,091 times

Last updated: 18 May '12, 04:33