In installer RMDir will only delete a directory if it is empty.