Folder not removed after reboot when files are in use?


When I uninstall with our application running, the folder that contained the app is not removed after reboot. Now I know the documentation for the RemoveFolders action says that if the folder is not empty it won’t remove the folder. However after the reboot, the folder is empty, shouldn’t it be scheduled for deletion after reboot as well?


There is a known issue when a folder held in use (that is empty) and not deleted during uninstall.

Content credit also belongs to

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at

Comments (2)

  1. Paul says:

    This obviously doesn’t happen all the time, what triggers it? A process is holding the empty directory? Or is it one of those "sometimes it happens sometimes it doesn’t" kind of things? Is it planned to be fixed in a future release of the installer engine?

Skip to main content