title: Can't delete the folder created in My Documents with Inno Setup
body: <p>I have tried to use the program described here <a href="https://stackoverflow.com/questions/4722747/problems-in-deleting-a-folder-durring-the-uninstalation-with-inno-setup">Problems in deleting a Folder during the uninstalation with Inno Setup</a></p>
  
  <p>after the answers were posted but for some unknown reason to me that code part isn't doing anything. May be related to windows version or if it's on 32 or 64 bit?</p>
  
  <p>Here's the code used by me:</p>
  
  <pre><code>procedure CurUninstallStepChanged (CurUninstallStep: TUninstallStep);
  var
  mres : integer;
  begin
   case CurUninstallStep of
   usPostUninstall:
   begin
  mres := MsgBox('Do you want to delete saved games?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2)
   if mres = IDYES then
     DelTree('ExpandConstant({userdocs}\SpellForce2)', True, True, True);
      end;  
    end;
  end;
  </code></pre>
  
  <p>Any idea that could be useful to me?</p>
  
  <p>Thanks in advance! :)</p>