在Windows 10中注册自定义URI方案处理程序


10

在W7和W8中,仅通过在注册表中注册处理程序,就可以执行html中的任意可执行文件,如https://msdn.microsoft.com/pl-pl/library/aa767914.aspx#app_reg所述

mailto:someone@abc.com 类似。

处理程序在注册表中的注册不足以使其在W10中正常工作。

已经看到了/programming/24455311/uri-scheme-launchinghttps://msdn.microsoft.com/library/aa767916.aspx,但仍然没有确定的答案。有人吗

在此处输入图片说明

Answers:


1

您将“默认图标”设置为键,但只能是一个字符串。这是我看到的唯一区别。附加了我的配置的工作版本(将rtsp与vlc连接)。

斯特凡

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\rtsp]
"URL Protocol"=""
@="URL:Rtsp Streaming Protocol"
"DefaultIcon"="\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\",1"

[HKEY_CLASSES_ROOT\rtsp\shell]

[HKEY_CLASSES_ROOT\rtsp\shell\open]

[HKEY_CLASSES_ROOT\rtsp\shell\open\command]
@="\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\" \"%1\""

2
不对。“ DefaultIcon”是一个键。但是无论如何都没关系。
user2543253
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.