cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Old_Skool
Level 3

Empty Folders Not Removed On Windows 7

I have noticed a strange behavior for all of my installers when run on Windows 7 platforms.

My installers are created as Basic MSI projects and after successfully uninstalling the applications, I consistently see that the parent folder created under the [ProgramsFilesFolder] does not get removed. The folders are managed by components that use the [INSTALLDIR] property (no custom actions involved).

There are no handles open on the folders during the uninstall process and they are completely empty (no hidden files remain).

I only see this behavior on Windows 7 systems; on XP and Vista systems the folders are always removed.

Does anyone know why this is happening?
Labels (1)
0 Kudos

(1) Reply
shyam_eg
Level 3

we have similar issues even for windows 2008 and 2003 OS servers, we found an alternative to write a vb script function and define it in custom action, call it before install or after uninstall
0 Kudos