title: NSIS and reading from XML on uninstall
body: <p>I create a Windows installation package of my Java (Swing) application with NSIS tool.</p>
  
  <p>After installation when a user starts an application it creates a temporary 
  "work" folder in the "<strong>user.dir</strong>" directory using a user-customized name as the directory name. The full path of this folder is saved to an XML file in "<strong>user.dir"/Corp/configuration.xml</strong> file.</p>
  
  <p>This folder might contain gigabytes of data (depending on user activity).</p>
  
  <p>This is important to delete this directory if a user decides to uninstall the application using NSIS standard "uninstall".</p>
  
  <p>The question I would like to ask respected SO people is:</p>
  
  <p>HOW CAN I READ AN XML FILE IN NSIS FROM "user.dir" FOLDER TO GET A FOLDER PATH AND DELETE IT?</p>
  
  <p>This is an extract from my script file to do "uninstall" procedure:</p>
  
  <pre><code>Section "Uninstall"
  
    ;ADD YOUR OWN FILES HERE...
  
    Delete "$INSTDIR\Uninstall.exe"
  
    RMDir /r "$INSTDIR"
  
    !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
  
    Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
    Delete "$SMPROGRAMS\$StartMenuFolder\Corp MyApp.lnk"
  
    RMDir "$SMPROGRAMS\$StartMenuFolder"
  
    DeleteRegKey /ifempty HKCU "Software\Corp\MyApp"
  
  SectionEnd
  </code></pre>
  
  <p>Thank you for your help!</p>
  
  <p>Cheers</p>