SourceInsight 4.0 之 项目文件关联

  之前由于对SourceInsight 4.0 进行了重复安装卸载,或者将其关联的项目文件不小心改成了其他的,导致后续SourceInsight 4.0 无法直接通过鼠标双击打开其项目文件了。
  现将SourceInsight 4.0对应的注册表键值导出备份,再次出现问题后,重建注册表键值即可,具体如下:

; SourceInsight 4.0 在安装后会建立以下注册表键值
Windows Registry Editor Version 5.00
; 第一个 CPP 文件
[HKEY_CLASSES_ROOT\sourceinsight.cpp_file]

[HKEY_CLASSES_ROOT\sourceinsight.cpp_file\shell]

[HKEY_CLASSES_ROOT\sourceinsight.cpp_file\shell\open]
@="Open with Source Insight"

[HKEY_CLASSES_ROOT\sourceinsight.cpp_file\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00
; 第二个 CS 文件
[HKEY_CLASSES_ROOT\sourceinsight.cs_file]

[HKEY_CLASSES_ROOT\sourceinsight.cs_file\shell]

[HKEY_CLASSES_ROOT\sourceinsight.cs_file\shell\open]
@="Open with Source Insight"

[HKEY_CLASSES_ROOT\sourceinsight.cs_file\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第三个 CustomLanguage
[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguage]
@="Source Insight Custom Language File"

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguage\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_72A05ED2_298D_4B9E_B9A9_CD9D66E56873,0"

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguage\shell]

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguage\shell\open]

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguage\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,22,00,25,00,31,00,22,00,00,00,00,\
  00

; 第四个 CustomLanguageXml
[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguageXml]
@="Source Insight Custom Language File"

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguageXml\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_E567829E_AB99_44BE_8A48_F5A332FC0697,0"

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguageXml\shell]

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguageXml\shell\open]

[HKEY_CLASSES_ROOT\sourceinsight.CustomLanguageXml\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,22,00,25,00,31,00,22,00,00,00,00,\
  00

; 第五个 h 文件
[HKEY_CLASSES_ROOT\sourceinsight.h_file]

[HKEY_CLASSES_ROOT\sourceinsight.h_file\shell]

[HKEY_CLASSES_ROOT\sourceinsight.h_file\shell\open]
@="Open with Source Insight"

[HKEY_CLASSES_ROOT\sourceinsight.h_file\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第六个 hpp 文件
[HKEY_CLASSES_ROOT\sourceinsight.hpp_file]

[HKEY_CLASSES_ROOT\sourceinsight.hpp_file\shell]

[HKEY_CLASSES_ROOT\sourceinsight.hpp_file\shell\open]
@="Open with Source Insight"

[HKEY_CLASSES_ROOT\sourceinsight.hpp_file\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第七个 java 文件
[HKEY_CLASSES_ROOT\sourceinsight.java_file]

[HKEY_CLASSES_ROOT\sourceinsight.java_file\shell]

[HKEY_CLASSES_ROOT\sourceinsight.java_file\shell\open]
@="Open with Source Insight"

[HKEY_CLASSES_ROOT\sourceinsight.java_file\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第八个 Macro 文件
[HKEY_CLASSES_ROOT\sourceinsight.MacroFile]
@="Source Insight Macro Script File"

[HKEY_CLASSES_ROOT\sourceinsight.MacroFile\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_9BE70B6D_040F_410A_9010_8976DE373058,0"

[HKEY_CLASSES_ROOT\sourceinsight.MacroFile\shell]

[HKEY_CLASSES_ROOT\sourceinsight.MacroFile\shell\open]

[HKEY_CLASSES_ROOT\sourceinsight.MacroFile\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,22,00,25,00,31,00,22,00,00,00,00,\
  00

; 第九个 SourceInsight 4.0 的项目文件
[HKEY_CLASSES_ROOT\sourceinsight.Project]
@="Source Insight Project"

[HKEY_CLASSES_ROOT\sourceinsight.Project\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_293716B6_CD18_492E_8E91_7FEEAB26D12E,0"

[HKEY_CLASSES_ROOT\sourceinsight.Project\shell]

[HKEY_CLASSES_ROOT\sourceinsight.Project\shell\open]
@="Open Source Insight Project"

[HKEY_CLASSES_ROOT\sourceinsight.Project\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -p \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,70,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第十个 SourceInsight 4.0 的搜索结果文件
[HKEY_CLASSES_ROOT\sourceinsight.SearchResults]
@="Source Insight Search Results"

[HKEY_CLASSES_ROOT\sourceinsight.SearchResults\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_423004F0_0A47_42F5_979E_B869E8D71FF7,0"

[HKEY_CLASSES_ROOT\sourceinsight.SearchResults\shell]

[HKEY_CLASSES_ROOT\sourceinsight.SearchResults\shell\open]

[HKEY_CLASSES_ROOT\sourceinsight.SearchResults\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

; 第十一个 SourceInsight 4.0 的TokenMacro
[HKEY_CLASSES_ROOT\sourceinsight.TokenMacro]
@="Source Insight Token Macro File"

[HKEY_CLASSES_ROOT\sourceinsight.TokenMacro\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_ABE68187_AECB_445D_9767_250B0C748ABE,0"

[HKEY_CLASSES_ROOT\sourceinsight.TokenMacro\shell]

[HKEY_CLASSES_ROOT\sourceinsight.TokenMacro\shell\open]

[HKEY_CLASSES_ROOT\sourceinsight.TokenMacro\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,00,00,00,00

; 第十二个 SourceInsight 4.0 的Workspace
[HKEY_CLASSES_ROOT\sourceinsight.Workspace]
@="Source Insight Workspace File"

[HKEY_CLASSES_ROOT\sourceinsight.Workspace\DefaultIcon]
@="C:\\Windows\\Installer\\{668D0BC0-F422-4A2B-98EC-0E3CEAC88CFA}\\_5D08A131_3B81_4C95_8EAD_30D670EEBBFE,0"

[HKEY_CLASSES_ROOT\sourceinsight.Workspace\shell]

[HKEY_CLASSES_ROOT\sourceinsight.Workspace\shell\open]
@="Open Source Insight Workspace"

[HKEY_CLASSES_ROOT\sourceinsight.Workspace\shell\open\command]
@="\"D:\\Program Files (x86)\\Source Insight 4.0\\sourceinsight4.exe\" -i \"%1\""
"command"=hex(7):39,00,35,00,59,00,7a,00,48,00,60,00,55,00,40,00,70,00,3f,00,\
  4d,00,67,00,66,00,41,00,37,00,64,00,54,00,68,00,54,00,79,00,3e,00,7b,00,7b,\
  00,69,00,5b,00,2e,00,53,00,69,00,4d,00,43,00,40,00,59,00,5e,00,46,00,38,00,\
  35,00,47,00,7b,00,6a,00,33,00,71,00,20,00,2d,00,69,00,20,00,22,00,25,00,31,\
  00,22,00,00,00,00,00

注意修改以上文件中的路径,最后保存为.reg文件,直接双击即可!

猜你喜欢

转载自blog.csdn.net/zcshoucsdn/article/details/80336855