.then(()=>this.extractAndRename(id,zipPath,tempPath,extensionPath),e=>TPromise.wrapError(newExtensionManagementError(nls.localize('errorDeleting',"Unable to delete the existing folder '{0}' while installing the extension '{1}'. Please delete the folder manually and try again",extensionPath,id),INSTALL_ERROR_DELETING)))