✅ 优化everything搜索
This commit is contained in:
@@ -150,7 +150,6 @@ namespace GeekDesk
|
|||||||
{
|
{
|
||||||
SearchResControl control = obj as SearchResControl;
|
SearchResControl control = obj as SearchResControl;
|
||||||
control.VerticalUFG.Visibility = Visibility.Collapsed;
|
control.VerticalUFG.Visibility = Visibility.Collapsed;
|
||||||
control.SearchListBox.Items.Clear();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ namespace GeekDesk.Plugins.EveryThing
|
|||||||
string pluginsPath = Constants.PLUGINS_PATH;
|
string pluginsPath = Constants.PLUGINS_PATH;
|
||||||
bool Is64Bit = Environment.Is64BitOperatingSystem;
|
bool Is64Bit = Environment.Is64BitOperatingSystem;
|
||||||
string everyThingPath = pluginsPath + "/EveryThing/" + (Is64Bit ? 64 : 32) + "/EveryThing.exe";
|
string everyThingPath = pluginsPath + "/EveryThing/" + (Is64Bit ? 64 : 32) + "/EveryThing.exe";
|
||||||
string installUtilPath = "C:\\Windows\\Microsoft.NET\\Framework" + (Is64Bit ? "64" : "") + "\\v4.0.30319\\InstallUtil.exe";
|
|
||||||
|
|
||||||
Process p = new Process();
|
Process p = new Process();
|
||||||
p.StartInfo.FileName = everyThingPath;
|
p.StartInfo.FileName = everyThingPath;
|
||||||
@@ -101,12 +100,14 @@ namespace GeekDesk.Plugins.EveryThing
|
|||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
p.StartInfo.Verb = "runas";
|
||||||
arg = "-start-service";
|
arg = "-start-service";
|
||||||
break;
|
break;
|
||||||
case ServiceType.STOP:
|
case ServiceType.STOP:
|
||||||
arg = "-stop-service";
|
arg = "-stop-service";
|
||||||
break;
|
break;
|
||||||
case ServiceType.INSTALL:
|
case ServiceType.INSTALL:
|
||||||
|
p.StartInfo.Verb = "runas";
|
||||||
arg = "-install-service";
|
arg = "-install-service";
|
||||||
break;
|
break;
|
||||||
case ServiceType.UNINSTALL:
|
case ServiceType.UNINSTALL:
|
||||||
@@ -150,12 +151,16 @@ namespace GeekDesk.Plugins.EveryThing
|
|||||||
catch (Exception e) { }
|
catch (Exception e) { }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (uninstall)
|
if (GetService("Everything") != null)
|
||||||
{
|
{
|
||||||
EveryThingService(ServiceType.UNINSTALL);
|
if (uninstall)
|
||||||
} else
|
{
|
||||||
{
|
EveryThingService(ServiceType.UNINSTALL);
|
||||||
EveryThingService(ServiceType.STOP);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EveryThingService(ServiceType.STOP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) { }
|
catch (Exception e) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user