From 9482b8c82a65bb6f8e8c87c82527a5fb927a079d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=94=E2=84=93=D1=94=CE=BD=D1=94=D0=B8?= <91598634+elefelen@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:54:41 +0200 Subject: [PATCH] Update SourceCode.cs --- SourceCode.cs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/SourceCode.cs b/SourceCode.cs index d1fb710..dcaace1 100644 --- a/SourceCode.cs +++ b/SourceCode.cs @@ -56,18 +56,12 @@ private void Form1_Load(object sender, EventArgs e) MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result == DialogResult.Yes) { - using (var client = new WebClient()) - { - if (!Directory.Exists(UpdatePath)) - { - Directory.CreateDirectory(UpdatePath); - } - client.DownloadFile("https://www.dropbox.com/s/58labg5onm9fvvf/DbD%20Settings%20Changer.exe?dl=1", UpdatePath + @"\DbD Settings Changer.exe"); - Process.Start("explorer.exe", UpdatePath); - MessageBox.Show("The latest version of the program has been downloaded! Enter the open File Explorer and replace the old version of the program with the new one!", "Update", - MessageBoxButtons.OK, MessageBoxIcon.Information); - Application.Exit(); - } + var uri = "http://dbdconfigeditor.epizy.com/"; + var psi = new System.Diagnostics.ProcessStartInfo(); + psi.UseShellExecute = true; + psi.FileName = uri; + System.Diagnostics.Process.Start(psi); + Application.Exit(); } } }