-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
using System.Net; | ||
using System.IO.Compression; | ||
|
||
public static class Installations | ||
{ | ||
public static WebClient client = new WebClient(); | ||
public static Uri HIPPath = new Uri("https://github.com/green726/HISS"); | ||
public static Uri languagePath = new Uri("https://github.com/green726/HISS"); | ||
public static Uri HIPUri = new Uri("https://github.com/green726/HISS/HIP"); | ||
public static Uri languageUri = new Uri("https://github.com/green726/HISS/Language"); | ||
|
||
|
||
public static void installHIP(string path) | ||
{ | ||
client.DownloadFileAsync(); | ||
client.DownloadFileAsync(HIPUri, path + @"/HIP.zip"); | ||
//other HIP install stuff comes before the language install | ||
ZipFile.ExtractToDirectory(path ) | ||
|
||
|
||
installLanguage(path); | ||
} | ||
|
||
public static void installLanguage(string path) | ||
{ | ||
client.DownloadFileAsync(); | ||
client.DownloadFileAsync(languageUri, path + @"/Language.zip"); | ||
|
||
} | ||
} |