title: Installing file in users AppData folder using inno-setup
body: <p>I am using Inno-Setup version 5.5.3(a). </p>
  
  <pre><code>[Files]
  Source: "C:\GPT\GPT.exe"; DestDir: "{app}"; Flags: ignoreversion
  Source: "C:\GPT\GPT.dat"; DestDir: "{app}"; Flags: ignoreversion
  ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  </code></pre>
  
  <p>I would like to install the "GPT.dat" file into the users AppData folder in a custom folder called  "GPT"</p>
  
  <p>e.g.   AppData\GPT\</p>
  
  <p>for example, in my delphi code, I create a folder called "GPT" in the users AppData path. These is where I would like to place the file</p>
  
  <pre><code>var
    path: array[0..MAX_PATH] of char;
  
   SHGetFolderPath(0, CSIDL_APPDATA, 0, SHGFP_TYPE_CURRENT, @path);
   userPath:= Path;
   UserPath:= UserPath + '\GPT\';
   if not DirectoryExists(UserPath) then
     CreateDir(UserPath);
  </code></pre>
  
  <p>Can anyone tell me how to edit my [Files] section of my Inno script to make this happen?</p>
  
  <p>Thanks</p>