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 746b406 commit 9482b8c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions SourceCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit 9482b8c

Please sign in to comment.