NSIS清理系统通知区域无用图标
侧边栏壁纸
  • 累计撰写 29 篇文章
  • 累计收到 76 条评论

NSIS清理系统通知区域无用图标

nsisfans
2022-01-26 / 0 评论 / 33 阅读 / 正在检测是否收录...

第一步,删除图标注册表键值
第二步,重启Explorer进程

# NSIFFANS.COM
# 第一步,删除图标注册表键值
# 第二步,重启Explorer进程

Name "清理通知区域无用图标"
OutFile "清理通知区域无用图标.exe"

Section
DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" "IconStreams"
DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" "PastIconsStream"

DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" "IconStreams"
DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" "PastIconsStream"

FindWindow $0 "Progman" "Program Manager"
System::Call User32::GetWindowThreadProcessId(ir0,*i.r0)
System::Call Kernel32::OpenProcess(i0x0001,i,ir0)i.r0
System::Call Kernel32::TerminateProcess(ir0,i0)
System::Call Kernel32::CloseHandle(ir0)
SectionEnd
0

评论 (0)

取消