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

delete folder

i need to delete folder that is created at install time and has files that are created while application is run. i am using the Basic MSI project. i tried making a custom action which deletes folder while uninstalling application. i am using

DeleteDir(directory-name , ALLCONTENTS)
but it is unable to delete the files created while running the application.

thanks in advance,

rajen
Labels (1)
0 Kudos
(1) Reply
Not applicable

DeleteDir can't delete files/folders that are in-use.

You need to determine which files are in use and why and update your setup to close these files before the delete occurs. This may require calling UnUseDLL, FreeLibrary, etc. to release the appropriate file.

Devin Ellingson
Software Developer
Acresso Software
0 Kudos