.then(()=>this.logService.info(extension.identifier.id,'Finished running uninstall hook'),err=>this.logService.error(extension.identifier.id,`Failed to run uninstall hook: ${err}`)));
.then(()=>this.logService.info(extension.identifier.id,`Finished running ${type} hook`),err=>this.logService.error(extension.identifier.id,`Failed to run ${type} hook: ${err}`)));
.then(()=>this.extractAndRename(id,zipPath,tempPath,extensionPath,token),e=>Promise.reject(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)))