title: How to make your MFC application bypass UAC in windows7 and Vista
body: <p>I have an MFC application developed in VS Studio 2008 which reads and writes to a JSON file in its installation folder. It works perfectly in vista(administrator) BUT ONLY when UAC is turned off. When UAC is ON, the application isn't able to write to its JSON file. I figured I had to create a manifest file but I haven't really tried creating one. </p>
  
  <p>Questions: </p>
  
  <ol>
  <li><p>reference: <a href="http://msdn.microsoft.com/en-us/library/bb384691.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb384691.aspx</a>.
  It says here that you can simply set the linker options in the Visual Studio development environment.
  What values do I need to select for:<br>
  a) Enable User Account Control (UAC)? [I tried NO].</p>
  
  <p>b) UAC Execution Level? [I tried highestAvailable].</p>
  
  <p>c) and UAC Bypass UI Protection? [I tried Yes]. </p></li>
  <li><p>Do I need to add the manifest file in the software package (exe, Dll's, etc.)?</p></li>
  </ol>
  
  <p>Thanks...</p>