Hi, and thank you for taking the time to reply.
"then unless you can get into the program options or the source code. "
There are no prog options to deal with this, and as this is a commercial app still in dev, the source code is out of the question. Not that I would know what to do with it anyway.
The app is Cubase, a music sequencing program. defaults.xml, which resides in the app data folder, keeps track of app-specific configuarations and settings. Positioning (x-y coordinates) of plug-ins, audio track height, color scheme, etc. The problem is, everytime the app is shut down, it changes the value of one of the strings, from a 0 to a 1. I can manually change the 1 to a 0 and save the xml, but upon every launch and shutdown, the app will automatically change that 0 back to a 1. Why do I need that string's value to be a 0? Because of a little bug, that prohibits a certain function from performing when the app sees that string's value as a 1. That function does work however, when the app sees that string's value as a 0. If you are thinking of telling me to be careful - that what I am doing can affect other functions in the app - no need. That string calls to a specific .dll to perform this function, and that .dll is not needed for any other function.
So, what I did was, set the .xml file to "read-only", and try to change the permissions so that the app can read the .xml file upon launch (necessary) but disallow the app from writing to that file. My attempts so far have been unsuccessful. I went into the Advanced security options, where I see:
SYSTEM
Admin (My Comp Name)
My Comp Name (My Comp Name)
All are currently set to full control.
I found that changing the permissions for SYSTEM does nothing, so I clicked on
My Comp Name (My Comp Name) > Change Permissions > My Comp Name (My Comp Name) > Edit, and now I have a list of Allow and Deny checkboxes.
If I check any or all of the Deny checkboxes, the equivalent Allow checkboxes stay checked, but my understanding is that the Deny permission supercedes the Allow permission - that correct?
So, I check all the Deny the boxes, except the ones that say "Read Attrib" and "Read Permissions". The idea here, is to allow the app to have permission to read the file, but not allow it change or write to the file. When I do that, I now see a 4th entry in the Permissions dial box which was not previously there. The three that have been there all the time say Inherited from: C:\Users\My Comp Name. The fourth that was just created says Inherited from: <not inherited>. But when I do this, the app doesn't read that file upon launch - I know this because of the settings that have reverted to the defaults. If I undo those permission changes, going back to the way it was previously, then the app does read the file upon launch, and the settings are as I have left them.
So, I am still wondering if there is any way to do this. Either through permissions, or some other way. Thanks again for any insight.