注册表方式
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\shellname]
"URL Protocol"="exe路径"
@=""
[HKEY_CLASSES_ROOT\thunder\DefaultIcon]
@="***.exe或路径,1"
[HKEY_CLASSES_ROOT\shellname\Shell]
[HKEY_CLASSES_ROOT\shellname\Shell\Open]
[HKEY_CLASSES_ROOT\shellname\Shell\Open\command]
@="exe绝对路径" \"%1\""
打包脚本方式:这里我用到的是nsis ,可以添加到 Section "MainSection" SEC01 ,其他方式没有验证
WriteRegStr HKCR "shellname" "@" ""
WriteRegStr HKCR "shellname" "URL Protocol" ""
WriteRegStr HKCR "shellname\DefaultIcon" "@" "NewVision VC Desktop.exe,1"
WriteRegStr HKCR "shellname\shell\open\command" "" "$\"$INSTDIR\NewVision VC Desktop.exe$\" $\"%1$\""
注:nsis 中 $\ 为转义符
web 链接
<meta charset="utf-8">
<center><a href="shellname://meeting/open?id=1484620001&pwd=&name=张三&server=xst.rspeedo.com:18443&type=cloud&opencamera=1&openmic=1" class="more">14846一键入会</a></center>
<center><a href="shellname://meeting/open?id=5555520001&pwd=&name=张三&server=xst.rspeedo.com:18443&type=cloud&opencamera=1&openmic=1" class="more">55555一键入会</a></center>
<br><br>
链接格式:jsictvideoconference://meeting/open?id=5555520001&pwd=&name=张三&server=xst.rspeedo.com:18443&type=cloud&opencamera=1&openmic=1<br>
参数说明:<br>
id 会议ID<br>
pwd 会议密码<br>
name 显示名<br>
server 服务器地址(如:xst.rspeedo.com:18443)<br>
type 服务器类型(yms或cloud)<br>
opencamera 是否打开摄像头(1是、0否)<br>
openmic 是否打开麦克风(1是、0否)<br>
qt+c++ 从0到1 记录一下