使用Inno Setup,参考链接:
https://jingyan.baidu.com/article/36d6ed1f50ecfc1bcf4883aa.html
修改Iss文件,增加以下部分(外部通过注册表,调用exe)
[registry]
;本段处理程序在注册表中的键值
Root:HKCR; Subkey: "LocationSystem"; ValueType: "string"; ValueName: "URL Protocol"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\DefaultIcon"; ValueType: "string"; ValueData:{app}\Location.exe; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell"; ValueType: "string"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell\open"; ValueType: "string"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell\open\command"; ValueType: "string"; ValueData:{app}\Location.exe %1; Flags: uninsdeletevalue
参考链接: