3 ms·
As far as I remember the thing you use to delete the file on next boot does not run arbitrary code, but is a special "rename-like" action that you can't use to
by alexvitkov 3y ago
As far as I remember the thing you use to delete the file on next boot does not run arbitrary code, but is a special "rename-like" action that you can't use to recursively delete the folder of your program.
edit:
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefilea https://learn.microsoft.com/en-us/windows/win32/api/winbase/...
It's the MOVEFILE_DELAY_UNTIL_REBOOT flag. Honestly maybe you can call MoveFileA on the entire directory tree you want to delete starting from the .exe and spare yourself the script, I don't see an obvious reason why it wouldn't work.
- deleted 3y ago[deleted]