public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult) { ArrayList missing = folderInfo.GetMissingAddins(); if (missing.Count > 0) { if (Directory.Exists(folderInfo.Folder)) { scanResult.ModifiedFolderInfos.Add(folderInfo); } scanResult.ChangesFound = true; if (scanResult.CheckOnly) { return; } foreach (AddinFileInfo info in missing) { if (info.IsRoot) { database.UninstallRootAddin(monitor, info.AddinId, info.File, scanResult); } else { database.UninstallAddin(monitor, info.AddinId, scanResult); } } } }
public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo) { var missing = folderInfo.GetMissingAddins(FileSystem); if (missing.Count > 0) { if (FileSystem.DirectoryExists(folderInfo.Folder)) { scanResult.RegisterModifiedFolderInfo(folderInfo); } scanResult.ChangesFound = true; if (scanResult.CheckOnly) { return; } foreach (AddinFileInfo info in missing) { database.UninstallAddin(monitor, info.Domain, info.AddinId, info.File, scanResult); } } }
public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult) { ArrayList missing = folderInfo.GetMissingAddins (fs); if (missing.Count > 0) { if (fs.DirectoryExists (folderInfo.Folder)) scanResult.RegisterModifiedFolderInfo (folderInfo); scanResult.ChangesFound = true; if (scanResult.CheckOnly) return; foreach (AddinFileInfo info in missing) { database.UninstallAddin (monitor, info.Domain, info.AddinId, info.File, scanResult); } } }
public void UpdateDeletedAddins (IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult) { ArrayList missing = folderInfo.GetMissingAddins (); if (missing.Count > 0) { if (Directory.Exists (folderInfo.Folder)) scanResult.ModifiedFolderInfos.Add (folderInfo); scanResult.ChangesFound = true; if (scanResult.CheckOnly) return; foreach (AddinFileInfo info in missing) { if (info.IsRoot) database.UninstallRootAddin (monitor, info.AddinId, info.File, scanResult); else database.UninstallAddin (monitor, info.AddinId, scanResult); } } }