title: NSIS, detect if directory exists during installation
body: <p>I have installer, which supports choosing installation directory. And I want to detect if given folder exists and if it is empty. If it is NOT empty, show warning message box, then remove all its contents and install program into that folder. Only problem is to get into the right code section, where I can get installation folder given by user during installation, I can handle the rest.</p>
  
  <p>Thank you for any advices.</p>