Skip to content

Commit

Permalink
Update SourceCode.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
tenshi64 authored Oct 9, 2021
1 parent 4ab2596 commit 746b406
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions SourceCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ private void Form1_Load(object sender, EventArgs e)
Application.Exit();
}

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();
}
try
{
WebClient wc = new WebClient();
Expand All @@ -68,12 +56,18 @@ private void Form1_Load(object sender, EventArgs e)
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (result == DialogResult.Yes)
{
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();
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();
}
}
}
}
Expand Down

0 comments on commit 746b406

Please sign in to comment.