Hello every body :)
My problem is that I used a class to uninstall the application with a setup project, but after uninstall, the tool is completely uninstalled but the application folder is not completely removed, some DLLs still in the folder.
It seems that directory.delete() doesn't remove these files, but it doesn't generate any exception and the uninstall is successfully terminated.
I need ur help and ur suggestions.
Thanks in advance :)
Remarque: i didn't have this problem in an other PC, the application folder is completely removed!! I can't find the problem :(
Direstory.delete problem!!!
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pedro Barbas24 reputationPosted Aug 19, 2009, 2:02 AM EDT
Try this:
System.IO.Directory.Delete(path, true);
Passing "true" as the second parameter tells the method to delete files & folders recursively. Hence this will delete all files and subfolders from the "my_folder_to_delete" directory and then delete the actual directory itself.
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 19, 2009, 2:24 AM EDT
DLL files that are in Application Forlder may be in Process
Abhi Joz13 reputationPosted Oct 5, 2009, 10:33 PM EDT