title: Remove folder specified by user at install time in Inno Setup Uninstaller
body: <p>I have a setup script which allows the user to specify a relative path where the application will save some files and folders. The path will be saved to a <code>config.ini</code> file. Till then everything works as expected.</p>
  
  <p>Now I want the uninstaller to perform a removing of all content under the specified path. In my installer script I have a variable</p>
  
  <pre class="lang-pascal prettyprint-override"><code>var DataPath : String;
  </code></pre>
  
  <p>which holds the path.</p>
  
  <p>To perform the removing I added the following lines of code (<a href="http://www.jrsoftware.org/ishelp/index.php?topic=uninstalldeletesection" rel="nofollow noreferrer" title="UninstallDelete Section Inno Setup">as mentioned on their website</a>) to my script:</p>
  
  <pre><code>[UninstallDelete]
  Type: filesandordirs; Name: DataPath
  </code></pre>
  
  <p>Unfortunately this doesn't work. Does anyone know how to do this?</p>
  
  <p>My <code>[INI]</code> sections look like the following:</p>
  
  <pre><code>[INI]
  Filename: "{app}\config.ini"; Section: "connection = standard"; \
      Key: datapath; String: {code:GetDataPath}
  </code></pre>