mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2025-09-02 10:35:30 +00:00
本机测试创建的注册表项可能会没有打开权限
This commit is contained in:
@@ -117,6 +117,7 @@ namespace BulePointLilac.Methods
|
||||
public static RegistryKey CreateSubKey(this RegistryKey key, string subKeyName, bool writable)
|
||||
{
|
||||
key.CreateSubKey(subKeyName).Close();
|
||||
RegTrustedInstaller.TakeRegTreeOwnerShip($@"{key.Name}\{subKeyName}");
|
||||
return key.OpenSubKey(subKeyName, writable);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user