1、首先需要先写一个注册表文件;
通过txt文本写,写完以后更改后缀名;
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\liexplorer]
@="URL:liexplorer Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\liexplorer\DefaultIcon]
@="t01_yitihua(与下方超链接的名字一致)"
[HKEY_CLASSES_ROOT\liexplorer\Shell]
[HKEY_CLASSES_ROOT\liexplorer\Shell\Open]
[HKEY_CLASSES_ROOT\liexplorer\Shell\Open\command]
@="C:\\ArcgisApiDemo\\ArcgisApiDemo\\ArcgisApiDemo\\bin\\Debug\\ArcgisApiDemo.exe(这个地方就是本地exe文件的绝对路径) \"%1\""
2、在html代码中加入名字随便起