Üye
elinize sağlık
WebClient client = new WebClient();
Uri Uri = new Uri("Versiyon.txt");
string versionstring = client.DownloadString(Uri);
double newestversion = double.Parse(versionstring);
if (newestversion != version)
{
dynamic MsgResult = MessageBox.Show(string.Format(Properties.Langs.Lang.messagebox_update) + version + (Properties.Langs.Lang.messagebox_newestversion) + newestversion,(Properties.Langs.Lang.Messagebox_launcher_running_tittle), MessageBoxButton.YesNo);
if (MsgResult == System.Windows.MessageBoxResult.Yes)
{
if (!File.Exists("Uygulamaadı.exe"))
{
client.DownloadFile("www.memoryhackers.org/uygulamaadı.exe");
}
ProcessStartInfo processInfo = new ProcessStartInfo();
processInfo.FileName = "uygulamadı.exe"; ;
Process.Start(processInfo);
Environment.Exit(1);
}
Else
{
messagebox.show("Kabul etmediniz, program kapanıyor.")
Environment.Exit(1);
}