|
|
比如要在未安装前添加右键程序,挂载Windows\System32\config下的SOFTWARE为1,你的程序为C:\Program Files\NTLite\NTLite.exe,那么:
Windows Registry Editor Version 5.00
;为右键加上“NTLite”
[HKEY_LOCAL_MACHINE\1\Classes\*\shell\runas]
@="NTLite1.8"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\*\shell\runas\command]
@="C:\\Program Files\\NTLite\\NTLite.exe"
"IsolatedCommand"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\exefile\shell\runas2]
@="NTLite1.8"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\exefile\shell\runas2\command]
@="C:\\Program Files\\NTLite\\NTLite.exe"
"IsolatedCommand"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\Directory\shell\runas]
@="NTLite1.8"
"NoWorkingDirectory"=""
"Icon"="C:\\Windows\\system32\\SnippingTool.exe"
[HKEY_LOCAL_MACHINE\1\Classes\Directory\shell\runas\command]
@="C:\\Program Files\\NTLite\\NTLite.exe"
"IsolatedCommand"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\DesktopBackground\Shell\NTLite]
@="NTLite1.8"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\NTLite\\NTLite.exe"
[HKEY_LOCAL_MACHINE\1\Classes\DesktopBackground\Shell\NTLite\command]
@="C:\\Program Files\\NTLite\\NTLite.exe"
"IsolatedCommand"="C:\\Program Files\\NTLite\\NTLite.exe"
|
|