title: How to stop files been saved in Virtual Store / ProgramData?
body: <p>[ I submitted this question 2 months ago and didn't have any replies ... and obviously the problem is still live and we are about to release a new version of our app, so now am writing some documentation to get the users to delete any entries in the virtual store - something I didn't want to do .... so now really hoping someone out there can help us ?! ]</p>
  
  <p>I appreciate that there is a lot of info regarding this topic, but I am still having an annoying issue and not sure where to go with it ... hence coming here !!</p>
  
  <p>We have an app (VB.NET) that now installs REPORT files into a folder under ProgramData.  Now our app dll is run from a third party app ( that we obviously have no control over ) and this third party app allows people to run the reports; but when a report is run, it then updates the report, so that it's "last run date" is stored.  This is what is causing us the fun we are having.</p>
  
  <p>With UAC on, the report files are been copied to the equivalent location within the Virtual Store.  This of course is ok while they are using the current version of our app, but when we release a new version ( with modified reports ) these new versions are getting installed correctly into ProgramData, but  when the user runs the app - they are seeing the outdated reports from Virtual Store.</p>
  
  <p>We are very close to writing some installation documentation, telling folk to delete any reports from Virtual Store, before installing our new version - but this is a real cop out !! </p>
  
  <p>The third party app also installs its own reports ( into a different location under ProgramData ) and they are able to update their reports without Virtual Store kicking in - so we know it's possible !  </p>
  
  <p>I have just added a manifest to our dll :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
    &lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&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;requestedExecutionLevel level="asInvoker" uiAccess="false"/&gt;
        &lt;/requestedPrivileges&gt;
      &lt;/security&gt;
    &lt;/trustInfo&gt;
    &lt;/assembly&gt;
  </code></pre>
  
  <p>hoping that would be the cure, but alas no !</p>
  
  <p>So, I'm open to any suggestions that you folk may have ?!?</p>
  
  <p>Cheers,</p>
  
  <p>Chris.</p>