SVN r1220

SVN-Revision: r1220
This commit is contained in:
cyf
2026-06-22 02:29:22 +00:00
parent 1e2c081b6a
commit c3e1e7d2d2
9 changed files with 177 additions and 71 deletions
+12 -7
View File
@@ -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