Keresés

Új hozzászólás Aktív témák

  • togvau

    senior tag

    válasz BTminishop #7733 üzenetére

    private void Button_Click(object sender, RoutedEventArgs e)
    {
    string destination = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Releaser\\Game", "InstallLocation", null) as string;
    if (!File.Exists(destination+"\\app.exe")) {
    destination = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App", "InstallLocation", null) as string;
    }
    else if (!File.Exists(destination + "\\app.exe"))
    {
    FolderBrowserDialog fbdialog = new FolderBrowserDialog(this);
    fbdialog.ShowNewFolderButton = false;
    fbdialog.Description = "jelöljed ki a témát";
    fbdialog.RootFolder = Environment.SpecialFolder.ProgramFilesX86;
    if (fbdialog.ShowDialog() == System.Windows.Forms.DialogResult.OK && File.Exists(fbdialog.SelectedPath + "\\app.exe"))
    {
    destination = fbdialog.SelectedPath;
    }
    else
    {
    System.Windows.Forms.MessageBox.Show("exe not found in the selected directory","Problem",MessageBoxButtons.OK,MessageBoxIcon.Stop);
    return;
    }
    }
    System.Console.WriteLine(destination+Directory.Exists(destination));

    if (gemail.Text != null || gepassword.Password != null || gemail.Text.Length > 4 || gepassword.Password.Length > 10)
    {
    //insta.LetsDoThis(gemail.Text, gepassword.Password,destination);
    }
    }

Új hozzászólás Aktív témák