SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied

时间:2024-04-06 20:30:53

安装失败可以查看日志,即可了解具体原因,日志路径如下
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied
本人安装时遇到一个比较稀有的问题:
System.UnauthorizedAccessException: Access to the registry key ‘HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION’ is denied
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied
‘HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION’
这个路径在我的注册表里实际上并不存在,一开始我以为是访问路径的问题,因为
'HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION’这个路径是存在的,
网上没有找到对应解决方案,经过摸索,终于安装成功,方案如下:
1.打开注册表:
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied
2.根据日志提示找到报错的最后一级路径
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied
3.右键【Main】这一项
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied

4.点击权限,修改权限,允许用户完全控制,再次重新安装SourceTree就不会报错了
SourceTree安装闪退,报错Access to the registry key ‘...‘ is denied
个人总结:不管是什么问题,日志一般都比较清晰明了地说明问题所在,根据报错原因来寻求解决方案最快速准确,比如上述问题,报的就是访问被拒绝,那就是权限的问题,打开权限即可