cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tcom36
Level 7

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?
Labels (1)
0 Kudos
(1) Reply
tcom36
Level 7

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...
0 Kudos