title: Inno Setup - puts user files in admin documents
body: <p>I have a few Windows 7 users who, when installing and logged in as themselves, are asked to provide the Admin password. When this happens, Inno Setup installs the program for that user but it places the sample data files in the Admin's documents folder.</p>
  
  <p>What can I do to make sure Inno Setup places the sample data files in the user's Documents folder where they belong?</p>
  
  <pre><code>[Files]
  Source: "C:\dev\Installer Files\Chess Openings Wizard 2016\Game Trees\*.*";   DestDir: "{code:GetDataDir}\Game Trees";   Flags: uninsneveruninstall recursesubdirs
  
  function GetDataDir(Param: String): String;
  begin
    { Return the selected DataDir }
    Result := DataDirPage.Values[0];
  end;
  </code></pre>