File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments