title: Write in "ProgramData" folder (W7 and Vista) .NET
body: <p>I install my app under "Program Files" directory. And I install data, under "ProgramData" directory:</p>
  
  <p><strong>Environment.SpecialFolder.CommonApplicationData</strong></p>
  
  <p>In programData I have created folder to save data. Example:</p>
  
  <p><strong>C:\ProgramData\MyApp\MyData\here I have files and folders</strong></p>
  
  <p>Under XP all runs fine. But not under Vista or W7 OS.</p>
  
  <p>I can read files in this directory, but I can not write files, I can not create new files, etc. The user is logged as Admin.</p>
  
  <p>Where I can store data without restrictions? I need store data in a folder visible for all users</p>
  
  <p><strong>EDITED:</strong></p>
  
  <p>I have this code in my app.manifest file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;assemblyIdentity version="1.0.0.0" name="MyApplication.app"/&gt;
    &lt;trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"&gt;
      &lt;security&gt;
        &lt;requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
          &lt;!-- Opciones del manifiesto de Control de cuentas de usuario
               Si desea cambiar el nivel de Control de cuentas de usuario de Windows, reemplace el 
               nodo requestedExecutionLevel por alguno de los siguientes.
  
          &lt;requestedExecutionLevel  level="asInvoker" uiAccess="false" /&gt;
          &lt;requestedExecutionLevel  level="requireAdministrator" uiAccess="false" /&gt;
          &lt;requestedExecutionLevel  level="highestAvailable" uiAccess="false" /&gt;
  
              Si desea utilizar la virtualización de archivos y del Registro para la compatibilidad 
              con versiones anteriores, elimine el nodo requestedExecutionLevel.
          --&gt;
          &lt;requestedExecutionLevel level="asInvoker" uiAccess="false" /&gt;
        &lt;/requestedPrivileges&gt;
      &lt;/security&gt;
    &lt;/trustInfo&gt;
  &lt;/asmv1:assembly&gt;
  </code></pre>