This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Empty Folders Not Removed On Windows 7
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 10, 2011
12:49 PM
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?
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 14, 2011
08:19 PM
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