tags:

views:

49

answers:

2

How to Delete all the Folders Created by the Application in the Application Start Up Path (Program Files) at the Unistall.

A: 

You don't really need to, the uninstall will keep a log at install and do this for you.

However I guess you're pointing out that it won't delete things that it didn't install in the first place. On that basis you should override the rollback/uninstall methods on your custom Installer class and write code that looks for and removes stuff that was created since the install (possibly by your application).

Be aware though that even with this approach, you might find it tough to make sure the folder (with the uninstall log) is removed totally.

Neil Barnwell
+2  A: 

Be careful also with deleting folders. What if some user just installs your program into C:. Do you clean up his whole drive afterwards?

Riho