Skip to content

Commit 7727b48

Browse files
committed
Update Installations.cs
1 parent 8749b5f commit 7727b48

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Installer/src/Installations.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
using System.Net;
2+
using System.IO.Compression;
23

34
public static class Installations
45
{
56
public static WebClient client = new WebClient();
6-
public static Uri HIPPath = new Uri("https://github.com/green726/HISS");
7-
public static Uri languagePath = new Uri("https://github.com/green726/HISS");
7+
public static Uri HIPUri = new Uri("https://github.com/green726/HISS/HIP");
8+
public static Uri languageUri = new Uri("https://github.com/green726/HISS/Language");
89

910

1011
public static void installHIP(string path)
1112
{
12-
client.DownloadFileAsync();
13+
client.DownloadFileAsync(HIPUri, path + @"/HIP.zip");
14+
//other HIP install stuff comes before the language install
15+
ZipFile.ExtractToDirectory(path )
16+
17+
1318
installLanguage(path);
1419
}
1520

1621
public static void installLanguage(string path)
1722
{
18-
client.DownloadFileAsync();
23+
client.DownloadFileAsync(languageUri, path + @"/Language.zip");
24+
1925
}
2026
}

0 commit comments

Comments
 (0)