SVN r1220
SVN-Revision: r1220
This commit is contained in:
@@ -214,12 +214,17 @@ namespace Lskj.Main
|
||||
#region 注册自定义协议
|
||||
private static void Register()
|
||||
{
|
||||
string exePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Lskj.CallWebLibrary.exe");
|
||||
using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Classes\lserp"))
|
||||
try
|
||||
{
|
||||
key.SetValue("", "URL:LSERP Protocol");
|
||||
key.SetValue("URL Protocol", "");
|
||||
string exePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Lskj.CallWebLibrary.exe");
|
||||
using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Classes\lserp"))
|
||||
{
|
||||
key.SetValue("", "URL:LSERP Protocol");
|
||||
key.SetValue("URL Protocol", "");
|
||||
}
|
||||
using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Classes\lserp\shell\open\command"))
|
||||
{
|
||||
key.SetValue("", $"\"{exePath}\" \"%1\"");
|
||||
}
|
||||
}
|
||||
using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Classes\lserp\shell\open\command"))
|
||||
{
|
||||
key.SetValu
|
||||
catch (Exception ex
|
||||
Reference in New Issue
Block a user