Prevent a program from deleting files in Windows?
Solution 1:
You can change the ACL on the folder in question so that the account running the executable (most likely you) can create, write, edit files in there, but not delete. Two issues:
You would of course possibly cause the program to crash
You will have to regain control of the folder afterwards (take ownership, reset all permissions etc) to be able to delete the files