Our application is currently a mix of legacy C++ apps, C# .NET apps, and a variety of DLL and other supporting files. We recently ran into a problem where we needed to change a setting that appears in the Windows UI under Internet Options; it's called generatePublisherEvidence
.
So my question is really two-fold:
Is there a better way to deal with this setting other than by using a file in our application directory named
myEXE.exe.config
? Here's the content of the file, by the way:<?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <generatePublisherEvidence enabled="false"/> </runtime> </configuration>
If the
.exe.config
file is the appropriate choice, then is it possible to avoid having to include one of these for every EXE in my application (we have 18 of them)? In other words, is there some equivalent mechanism to a file*.exe.config
that they all go looking for? A setting in every project perhaps?