There’s a program I have where I want to modify certain files within it and then prevent the program itself from modifying those files back to their original state. The program is located in C:Program Files (x86).
I thought that by modifying the permissions of the file, I would be able to do this. My administrator account is the owner of the file. I disabled permissions inheritance and set the permissions of all of the following groups to allow read & execute, and deny write:
- ALL APPLICATION PACKAGES
- ALL RESTRICTED APPLICATION PACKAGES
- SYSTEM
- [my admin user account]
- Administrators
- Users
But a day later after the program had started again, I found my changes undone. The program had simply appended .old to the edited files and replaced them with unaltered versions.
I thought that restricting the permissions would prevent things like modifying, deleting, replacing, or renaming the files. Is there a way I can prevent the program from renaming and replacing the file?