Klocman / Bulk-Crap-Uninstaller

Remove large amounts of unwanted applications quickly.
https://www.bcuninstaller.com/
Apache License 2.0
12.08k stars 597 forks source link

Feature request: delete used files on reboot #129

Open DmitriyYukhanov opened 7 years ago

DmitriyYukhanov commented 7 years ago

Hey, now, if I'm trying to remove some leftovers which are in use and can't be killed (e.g. some libraries could be loaded within explorer.exe) - I just see a standard Windows dialog about folder or file can't be removed.

Would be nice to put files which can't be deleted (running processes or loaded dll libraries) to the delete-on-reboot queue.

The registry key HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations is used for that.

And MoveFile API too. Here is a C# example: https://stackoverflow.com/questions/6077869/movefile-function-in-c-sharp-delete-file-after-reboot

Klocman commented 7 years ago

Nice catch with that API, looks good to put this in.