I think the best solution would be to create a User Account for your user on that operating system that doesn't have the privileges to rename or delete files in certain protected directories.
I don't know what ramifications that would have for your application, seeing as it would probably run with the same privileges as the user has...
Jarrod S.
National Instruments