title: NSIS Uninstaller does not delete directory
body: <p>I am using NSIS for My Installer.
  When I uninstall, at the end I want to remove the installation directory and all it's content.
  I am using the following code</p>
  
  <p><code>Delete "$INSTDIR\*.*"
  RMDir /r "$INSTDIR"</code></p>
  
  <p>And I notice that the installer deletes all the files in the directory, and then crashes.
  (i've added log in between the lines and it is not called, The directory stays)</p>
  
  <p>What could be the reason for it to crash like this?
  I've shutted down the service, and the process, and don't think that anything is in use.</p>
  
  <p>Thank you</p>
  
  <p>EDIT:
  Maybe it's because I am deleting the Uninstaller.exe? I tried calling <code>ExecWait</code> to a batch file that deletes the folder and it also stops working after the delete</p>