The Oracle SQL Developer contains a usage tracking module. When you start the application the first time, it asks you whether you want to sent statistics to oracle or not. In a Windows Terminal Server hosted app I don't let the customers decide to sent or not. I found out, that the preference could be preset by a flag in the user home.
File: %APPDATA%\SQL Developer\system<app version>\o.sqldeveloper\product-preferences.xml
<hash n="oracle.ideimpl.usages.UsagesPrefs">
<value n="track-usages" v="false"/>
</hash>
My question: Is there an easier way to enforce that flag, instead of having a script around the application, that checks the existence of the preferences file and modifies the flag if necessary?