Protect-Windows-Context-Menu icon indicating copy to clipboard operation
Protect-Windows-Context-Menu copied to clipboard

可能导致英伟达驱动安装失败(附解决方法)

Open yll690 opened this issue 1 year ago • 3 comments

开启保护后,即使解除保护,英伟达驱动仍有可能安装失败,没有详细提示,如果从设备管理器中用windows自动搜索,则会提示拒绝访问。 根据这篇教程查看安装日志setupapi.dev.log后发现是右键菜单的注册表拒绝访问导致的:

     inf:                                    {Install from INF Section - nv_nvlddmkm_serviceInstallRS__01} 22:36:18.777
     inf:                                         Flags         - 0x00100004
!!!  inf:                                         Unable to create registry key
!!!  inf:                                         Error 5: Access is denied.
!!!  inf:                                         Error setting registry value HKCR\Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext
!!!  inf:                                         Error 5: Access is denied.
!!!  inf:                                         Error parsing section [nv_nvlddmkm_serviceInstallRS__01], key=AddReg.
!!!  inf:                                         Error 5: Access is denied.
!!!  inf:                                         Error parsing section [nv_nvlddmkm_serviceInstallRS__01]
!!!  inf:                                         Error 5: Access is denied.

即使解除保护也是同样的报错 ,最终我发现需要在关闭保护后,手动删除以下三个项目(可能有所不同,以日志为准),就可以安装了:

HKCR\Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext
HKCR\lnkfile\ShellEx\ContextMenuHandlers\NvAppShExt
HKCR\lnkfile\ShellEx\ContextMenuHandlers\OpenGLShExt

不确定具体是什么原因,可能不是保护脚本的问题,总之记录一下方便其他人解决类似的问题。 最后,脚本很有用,帮我挡住了不少流氓软件。

yll690 avatar Oct 06 '24 15:10 yll690

之前也遇到了同样的问题,可惜没早一点看到这个issue。

jascry avatar Jan 01 '25 03:01 jascry

刚刚遇到了同样的问题,重装系统后看到了这个issue

qi-gu avatar Jan 05 '25 13:01 qi-gu

可惜没早一点看到这个issue,我换成a卡了

lele712 avatar Feb 20 '25 07:02 lele712