This commit is contained in:
2025-10-18 16:47:57 +02:00
parent cebdfef45f
commit b8c45f39f4
8 changed files with 183 additions and 43 deletions

View File

@@ -1,12 +1,9 @@
using Microsoft.Win32;
using Perfect11.TweaksInterface;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perfect11.Inbox.UninstallOneDrive
{
@@ -28,6 +25,11 @@ namespace Perfect11.Inbox.UninstallOneDrive
if (key != null)
regExists = key.GetSubKeyNames().Any(n => n.ToLower().Contains("onedrive"));
}
using (var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall"))
{
if (key != null)
regExists = key.GetSubKeyNames().Any(n => n.ToLower().Contains("onedrive"));
}
}
catch { }