注册Windows的URL协议
上次chrome-extension协议注册到Windows系统里,写了一段注册表文件实现。这里备份一下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\\chrome-extension]
@=\"ChromeProtocol\"
\"URL Protocol\"=\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\"
[HKEY_CLASSES_ROOT\\chrome-extension\\DefaultIcon]
@=\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe,1\"
[HKEY_CLASSES_ROOT\\chrome-extension\\shell]
[HKEY_CLASSES_ROOT\\chrome-extension\\shell\\open]
[HKEY_CLASSES_ROOT\\chrome-extension\\shell\\open\\command]
@=\"\\\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\\\" \\\"%1\\\"\"