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 :(
Loading
Abhi JozPosted Oct 6, 2009, 2:33 AM
Kirtan PatelPosted Aug 19, 2009, 6:24 AM
DLL files that are in Application Forlder may be in Process
Pedro BarbasPosted Aug 19, 2009, 6:02 AM
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.