Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

uninstall folders and files


2 replies to this topic

hsong3

hsong3
  • Members
  • 89 posts

Posted 07 March 2005 - 03:59

hello.

after i complete my install, i launch this installed application. but this application creates the additional folders and files that installshield cannot remove during the uninstall process.

i have tried to use RemoveFile table but i couldn't succeed.
and i don't want to use script or additional dll to handle this problem. is there built-in msi function/table that can remove folders(more than 1 depth) and files??

thank you


cooki

cooki
  • Full Members
  • 35 posts

Posted 07 March 2005 - 13:43

i had the same problem. As far as i know there is nothing in MSI for recursive delete of directories. You can only delete folders if they are empty.
- if your folders tree is always the same, then add 2 entries to the removefile table for each folder you want to delete : one to delete all sub-files (*.*), the other for the folder itself.
- otherwise, write a custom action

hsong3

hsong3
  • Members
  • 89 posts

Posted 07 March 2005 - 20:09

i see.. thank you!!