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 directory deleted on uninstall
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
Jun 26, 2008
01:40 AM
Empty directory deleted on uninstall
I have an InstallScript MSI project.
During the installation process, I determine the location of excel and put an vba excel plugin into the XLSTART directory of Excel.
During uninstall, this vba excel plugin is removed from the XLSTART directory, but if it is the one and only file in the XLSTART directory, the directory is deleted as well. The next start of excel makes a repair install of it and recreates this directory.
Is there a way to hinder InstallShield in deleting an empty directory on uninstall?
During the installation process, I determine the location of excel and put an vba excel plugin into the XLSTART directory of Excel.
During uninstall, this vba excel plugin is removed from the XLSTART directory, but if it is the one and only file in the XLSTART directory, the directory is deleted as well. The next start of excel makes a repair install of it and recreates this directory.
Is there a way to hinder InstallShield in deleting an empty directory on uninstall?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 26, 2008
10:12 AM
I tried to set the "Permanent" flag to Yes for the XLSTART flag, but this makes InstallShield to also keep the containing file, the excel plugin.
I think the last solution is to add a script which recreates the XLSTART folder after uninstall...
I think the last solution is to add a script which recreates the XLSTART folder after uninstall...
![](/skins/images/7DF1852B2C95702E61A73F170B191DAC/responsive_peak/images/icon_anonymous_message.png)