Section /o "un.$(NAME_SecUnRemoveAllFiles)" SecUnRemoveAllFiles
SetOutPath "C:\"
MessageBox MB_ICONQUESTION|MB_YESNO $(MB_REMOVE_ALL_FILES) IDNO skip_removeall
RMDir /r "$INSTDIR"
skip_removeall:
SectionEnd This Section is my last section in uninstaller and i have set OutPath to C:\ , but still, my folder is not deleted (only folder remains, all files inside are deleted). I looked on that uninstaller through Process Manager and it told me that process "Au_.exe" is still holding my $INSTDIR and so it cannot be deleted, but that was the unistaller process. So i pop-upped a message window with all variables i was using and it showed me that my InstDir is hold only by $INSTDIR.Now i have no idea what to do more. It looks like a bug in RMDir to me, because in official Scripting Reference is told that only $OUTDIR can block directory from being removed. And i dont want to delete it by some !system commands. Can you help me? Thanks a lot for every response.