Skip to content

Commit 98d8b9c

Browse files
committed
Install Ookla Speedtest CLI tool
1 parent 67bb532 commit 98d8b9c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

modUpdate.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ public static int UpdateAgent()
9999
return updateNeeded;
100100
}
101101

102+
public static int InstallOoklaSpeedtest()
103+
{
104+
try
105+
{
106+
Directory.CreateDirectory(Properties.Settings.Default.Tools_FolderURI);
107+
UpdateDownloadClient.DownloadFile(Properties.Settings.Default.Update_SourceURI + "ooklaspeedtest.zip", Properties.Settings.Default.Tools_FolderURI + "ooklaspeedtest.zip");
108+
ZipFile.ExtractToDirectory(Properties.Settings.Default.Tools_FolderURI + "ooklaspeedtest.zip", Properties.Settings.Default.Tools_FolderURI);
109+
File.Delete(Properties.Settings.Default.Tools_FolderURI + "ooklaspeedtest.zip");
110+
return 0;
111+
}
112+
catch (Exception err)
113+
{
114+
modLogging.LogEvent(err.Message, EventLogEntryType.Error, 6024);
115+
return -1;
116+
}
117+
}
118+
102119
public static int InstallWindowsUpdatePush()
103120
{
104121
try

0 commit comments

Comments
 (0)