public void openUpdate(string newVer, string oldVer) { var dialog = new XAML.UpdateWindow(newVer, oldVer); if (dialog.ShowDialog() == true) { //start the update program //Process.Start(Directory.GetCurrentDirectory() + "/update.exe"); //Exit the current program so the update program can overwrite the current files //Environment.Exit(0); //MainWindow.Close(); UpdateClient.UpdateClient update = new UpdateClient.UpdateClient("scoreboard_update.zip", "http://nathan-dev.com/projects/update/", "keeperScoreboard.exe"); } }