Skip to content

Commit

Permalink
bootstraper fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Feb 25, 2024
1 parent d4609f3 commit 8c308da
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ public static async Task Main(string[] args)
// 1. Download .exe installer depends on OS/CPU architecture
string installerUrl = Environment.Is64BitOperatingSystem ? WinX64Installer : WinX86Installer;
string fileName = "Wissance.Zerial.Installer.exe";
string fullFilePath = Path.GetFullPath(".", fileName);

string fullFilePath = Path.Combine(Path.GetFullPath("."), fileName);
Console.WriteLine("******** 1. Prepare to Get Installer ********");
using (HttpClient client = new HttpClient())
{
await client.DownloadFileTaskAsync(new Uri(installerUrl), fullFilePath);
}

Console.WriteLine("******** 2. Run installer Silently ********");
// 2. Run installer silently
Process installerProcess = Process.Start(fullFilePath, @"\SILENT");
Process installerProcess = Process.Start(fullFilePath, "/SILENT");
installerProcess.Close();
installerProcess.Dispose();

Expand Down

0 comments on commit 8c308da

Please sign in to comment.