views:

26

answers:

0

I am trying to create a tool that will perform some "clean up" functions for some non-technical Windows users. Most of the work will be unregistering dll files from previous versions of the client (ActiveX based) and then reinstalling the most current version from an msi file.

The problem I have is in properly removing downloaded controls that are stored in the "C:\Windows\Downloaded Program Files" folder. I assume there is some "magic" going on when I do this from Windows Explorer (right click and select "remove" from the context menu), and I don't want to just delete the files from those folders if there is something else that needs to be done. Does anyone know of a .Net class or something that I can use to remove these files if they are found on the system? I'd love to hear of a DownloadedProgramFiles namespace with a class that has a RemoveObject() method or something...

Thanks.