-
Notifications
You must be signed in to change notification settings - Fork 16
/
Spark.cs
40 lines (35 loc) · 874 Bytes
/
Spark.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Diagnostics;
using O2.Kernel;
using O2.Kernel.ExtensionMethods;
using O2.DotNetWrappers.ExtensionMethods;
using O2.XRules.Database.Utils;
using O2.XRules.Database.APIs;
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
public class Launcher
{
public static void launch()
{
new Spark_Installer().start();
}
}
public class Spark_Installer : Tool_API
{
public Spark_Installer()
{
config("Spark",
"http://download.igniterealtime.org/spark/spark_2_6_3.exe".uri(),
//"http://download.igniterealtime.org/spark/online/spark_2_6_3_online.exe".uri(),
ProgramFilesFolder.pathCombine(@"Spark\\Spark.exe"));
installFromExe_Web();
}
public Process start()
{
if (isInstalled())
this.Executable.startProcess();
return null;
}
}
}