After the uninstallation is complete, a reboot of the system is asked for. I figured from the log that some files (mostly dlls) are locked and hence not deleted. Hence the application folder also does not get deleted unless I reboot the system.

How can I delete these locked files without rebooting the system?

P.S. I have <deleteFile> tag set for that folder, but no use. I also tried adding the directory to the uninstaller in the <preuninstallationactionlist> using <adddirectoriestouninstaller>, but again no use.

asked 16 Dec '16, 12:41

MitaliG's gravatar image

MitaliG
111
accept rate: 0%


In a lot of cases when a dll is locked it is because it is being used by a running process. You would first have to find out which application is locking using the dll and then use <kill> to kill the process before uninstalling:

  <preUninstallationActionList>
   ... 
   <kill>
      <name>program.exe</name>
      <path>/path/to/programfolder/</path>
    </kill>
   ...
  </preUninstallationActionList>
link

answered 21 Dec '16, 12:12

Michiel's gravatar image

Michiel ♦
50614
accept rate: 20%

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
×4

Asked: 16 Dec '16, 12:41

Seen: 211 times

Last updated: 21 Dec '16, 12:12