title: Uninstallation Script in NSIS
body: <p>I am a newbie in writing an installer/uninstaller. I need an uninstaller to delete the files stored in the log file (text file). I am trying to implement the functionality using NSIS script but I couldn't though I followed the below link :
  <a href="http://nsis.sourceforge.net/Talk:Uninstall_only_installed_files" rel="nofollow">http://nsis.sourceforge.net/Talk:Uninstall_only_installed_files</a>
  Basically I need to implement the following four lines of code:</p>
  
  <pre><code>OutFile "dummy.exe" 
  Section "Uninstall"
  !include "unlist.txt"
  !system 'del unlist.txt'
  SectionEnd
  </code></pre>
  
  <p>The include statement shows an error as I've appended the file names with wrong format in unlist.txt .</p>
  
  <p>Compilation result:</p>
  
  <pre><code>OutFile: "dummy.exe"
  Section: "Uninstall"
  !include: "unlist.txt"
  File: "Test1.txt" [compress] 4 bytes
  File: "Test2.txt" [compress] 0/4 bytes
  File: "Test3.txt" [compress] 0/4 bytes
  File: "Test4.txt" [compress] 0/4 bytes
  !include: closed: "unlist.txt"
  SectionEnd
  </code></pre>
  
  <p>Processed 1 file, writing output:</p>
  
  <pre><code>Error: invalid script: no sections specified
  Error - aborting creation process
  </code></pre>
  
  <p>Can anyone advise me with a correct script or the correct format of file need to be mentioned in the unlist.txt ?</p>
  
  <p>Thanks for your help.</p>
  
  <p>Best Regards,
  Peter</p>